Subject: | .perlrc file - inconsistend documentation, and silently permissive parser |
The examples in these two pages are similar, but not identical. One
uses the installed policy names, the other one uses (I'm guessing, but
possibly) older names:
http://search.cpan.org/~thaljef/Perl-Critic-0.17/lib/Perl/Critic.pm#CONFIGURATION
http://search.cpan.org/~thaljef/Perl-Critic-0.17/lib/Perl/Critic/Config.pm#CONFIGURATION
They should both be referencing these policies:
m/^TestingAndDebugging::(RequireUseWarnings|RequireUseStrict)$/
From a maintenance POV, it would probably be better to refactor the
documentation for DRY - don't repeat yourself.
What's worse, no error is generated for an ill-formed .perlcriticrc file.