[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58603] [PATCH 8/8] gnu: Add perl-critic.
From: |
EuAndreh |
Subject: |
[bug#58603] [PATCH 8/8] gnu: Add perl-critic. |
Date: |
Mon, 17 Oct 2022 22:38:18 -0300 |
* gnu/packages/perl.scm (perl-critic): New variable.
---
gnu/packages/perl.scm | 45 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index f602181f05..6b9e3f526e 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -2262,6 +2262,51 @@ (define-public perl-cpanel-json-xs
versa.")
(license (package-license perl))))
+(define-public perl-critic
+ (package
+ (name "perl-critic")
+ (version "1.140")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/P/PE/PETDANCE/Perl-Critic-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1nzxpn71mrpp85yxrxlraj52q2skvf9ja887ls11d57h6smg1vmz"))))
+ (build-system perl-build-system)
+ (native-inputs (list perl-module-build perl-test-deep))
+ (propagated-inputs (list perltidy
+ perl-exception-class
+ perl-io-string
+ perl-ppi
+ perl-ppix-regexp
+ perl-b-keywords
+ perl-config-tiny
+ perl-padwalker
+ perl-test-memory-cycle
+ perl-file-which
+ perl-list-moreutils
+ perl-module-pluggable
+ perl-pod-parser
+ perl-pod-spell
+ perl-ppix-quotelike
+ perl-ppix-utilities
+ perl-readonly
+ perl-string-format
+ perl-task-weaken))
+ (home-page "https://metacpan.org/release/Perl-Critic")
+ (synopsis "Critique Perl source code for best-practices")
+ (description
+ "@code{perlcritic} is a Perl source code analyzer. It is the
+executable front-end to the @code{Perl::Critic} engine, which attempts to
+identify awkward, hard to read, error-prone, or unconventional constructs in
+your code. Most of the rules are based on Damian Conway's book \"Perl Best
+Practices\". However, @code{perlcritic} is not limited to enforcing PBP, and
it
+will even support rules that contradict Conway. All rules can easily be
+configured or disabled to your liking.")
+ (license license:perl-license)))
+
(define-public perl-crypt-cbc
(package
(name "perl-crypt-cbc")
--
2.38.0
- [bug#58603] [PATCH 0/8] Add perlcritic, EuAndreh, 2022/10/17
- [bug#58603] [PATCH 1/8] gnu: Add perl-config-tiny., EuAndreh, 2022/10/17
- [bug#58603] [PATCH 2/8] gnu: Add perl-pod-spell., EuAndreh, 2022/10/17
- [bug#58603] [PATCH 3/8] gnu: Add perl-readonly-xs., EuAndreh, 2022/10/17
- [bug#58603] [PATCH 4/8] gnu: Add perl-string-format., EuAndreh, 2022/10/17
- [bug#58603] [PATCH 5/8] gnu: Add perl-ppix-regexp., EuAndreh, 2022/10/17
- [bug#58603] [PATCH 6/8] gnu: Add perl-ppix-quotelike., EuAndreh, 2022/10/17
- [bug#58603] [PATCH 8/8] gnu: Add perl-critic.,
EuAndreh <=
- [bug#58603] [PATCH 7/8] gnu: Add perl-ppix-utilities., EuAndreh, 2022/10/17
- bug#58603: [PATCH 0/8] Add perlcritic, Christopher Baines, 2022/10/18