PerlCritic Perl::Critic is an extensible framework for creating and applying coding standards to Perl source code. Essentially, it is a static source code analysis engine. CPAN:Perl::Critic is distributed with a number of CPAN:Perl::Critic::Policy modules that attempt to enforce various coding guidelines. Most Policy modules are based on Damian Conway's book Perl Best Practices.

The analysis for Foswiki is run daily and located at:

PerlCritic settings

We generally want to avoid criticisms with the default perlcritic settings, however, it's highly educational to run perlcritic --brutal and even perlcritic --cruel which still contains useful (and many not-so-useful) warnings which help avoid buggy code.

PaulHarvey generally ignores:
  • Advice about m,xs modifiers on regexes
  • Postfix if; use of 'unless' (I don't use them myself, but these are deeply ingrained in most Foswiki code)
  • ... many more I can't think of right now
Topic revision: r5 - 09 Nov 2010, PaulHarvey
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy