Jump to content

Perl::Critic

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Amoore (talk | contribs) at 19:13, 25 April 2009 (new page describing the Perl::Critic tool). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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 PPI tool was developed to parse, snalyze 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