Perl::Critic is a static code analysis system for Perl. 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 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.
External links
This article has not been added to any content categories. Please help out by adding categories to it so that it can be listed with similar articles. (November 2011) |