Perl::Critic: Difference between revisions

Content deleted Content added
Proposing article for deletion per WP:PROD. (TW)
redirect to relevant section in Automated code review rather than delete - any useful content will be merged there
Line 1:
#redirect [[Automated code review#Perl]]
{{dated prod|concern = Non-notable module|month = May|day = 24|year = 2009|time = 22:07|timestamp = 20090524220749}}
{{R from merge}}
<!-- Do not use the "dated prod" template directly; the above line is generated by "subst:prod|reason" -->
'''Perl::Critic''' is a [[perl]] module and tool designed to help perl programmers ensure that their code complies with commonly held best practices for perl programming. Since it is a [[static code analysis]] tool, it does not actually execute the code that it examines.
 
== History ==
The Perl::Critic project grew out of a desire to have an automated tool to help enforce the coding standards recommended by the [[Perl Best Practices]] book by [[Damian Conway]]. Historically, analyzing perl code statically had proven to be difficult because the only tool available to parse Perl code was the ''perl'' program itself, which executed the code. The [http://search.cpan.org/dist/PPI/ PPI] tool was developed to parse, analyze and manipulate Perl code without actually executing it. By using this tool, the Perl::Critic module could be developed to find code that did not comply with the coding standards recommended by the book. It was eventually expanded to find violations of many policies not originally found in the book.
 
== Resources ==
* [http://search.cpan.org/dist/Perl-Critic/ The Perl::Critic page] at CPAN
* [http://perlcritic.com/ perlcritic.com] will run Perl::Critic over your source code
 
{{software-stub}}
 
[[Category:Static code analysis]]
[[Category:Perl]]