PerlCritic

http://search.cpan.org/dist/Perl-Critic/lib/Perl/Critic.pm 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 http://en.wikipedia.org/wiki/Damian_Conway Damian Conway's book http://oreilly.com/catalog/9780596001735/ 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