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:
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