Perl::Critic: Difference between revisions

Content deleted Content added
add authoritative link to Perl::Critic source
m External link URL updated for Perl::Critic on CPAN
 
(18 intermediate revisions by 13 users not shown)
Line 1:
{{Infobox software
'''Perl::Critic''' is a [[Static program analysis|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]].
| name = Perl::Critic
| logo = <!-- Image name is enough -->
| logo alt =
| logo caption =
| screenshot = <!-- Image name is enough -->
| screenshot alt =
| caption =
| collapsible = <!-- Any text here will collapse the screenshot -->
| author =
| developer =
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| discontinued = <!-- Set to yes if software is discontinued, otherwise omit -->
| ver layout = <!-- simple (default) or stacked -->
| latest release version =
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| latest preview version =
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| status =
| programming language =
| operating system =
| platform =
| size =
| language =
| language count = <!-- Number only -->
| language footnote =
| genre = [[Static program analysis|static code analysis]] system for the [[Perl]] [[programming language]]
| license =
| alexa =
| website = http://perlcritic.com
| repo = https://github.com/Perl-Critic/Perl-Critic/
| standard =
| AsOf =
 
}}
==External Links==
 
*[http://search.cpan.org/~elliotjs/Perl-Critic/lib/Perl/Critic.pm Perl::Critic on CPAN]
'''Perl::Critic''' is a [[Static program analysis|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]].
*[http://perlcritic.tigris.org/ Official site]
 
Perl::Critic is based on the [https://metacpan.org/module/PPI 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.
 
==External Linkslinks==
*[http://perlcritic.tigris.org/com Official siteHomepage]
*[http://search.cpan.org/~elliotjspetdance/Perl-Critic-1.130/lib/Perl/Critic.pm Perl::Critic on CPAN]
*[https://github.com/Perl-Critic/Perl-Critic/ Source code repository]
*[http://news.perlfoundation.org/2014/03/grant-proposal-perllint---yet.html Perl::Lint A fork for performance]
*[https://metacpan.org/pod/Perl::Lint Perl::Lint in MetaCPAN]
*[https://metacpan.org/pod/B::Lint B::Lint is equivalent to an extended version of the -w option of perl]
 
[[Category:Perl]]
[[Category:Program analysis]]
[[Category:Static program analysis]]