Jump to content

Perl::Critic

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Ganeshkarkigk (talk | contribs) at 01:48, 15 December 2017 (External link URL updated for Perl::Critic on CPAN). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Perl::Critic
Repositoryhttps://github.com/Perl-Critic/Perl-Critic/
Typestatic code analysis system for the Perl programming language
Websitehttp://perlcritic.com

Perl::Critic is a static code analysis system for the Perl programming language. Perl::Critic is available as a source-code distribution on CPAN. It comes with a commandline tool, perlcritic, which can check Perl source code files and report on the code quality therein. Perl::Critic has an extensible architecture that allows the programmer to choose from many "policies" which enforce different Perl programming styles and tastes. The default policy is largely based on the recommendations in the book Perl Best Practices by Damian Conway.

Perl::Critic is based on the PPI parsing library. For safety, PPI does not execute any code while parsing, unlike the Perl compiler, so it is a close approximation of the real parser rather than an exact representation.

Some new alternatives include Perl::Lint and B::Lint.

[edit]