Perl::Critic::Pulp - some add-on perlcritic policies
This is a little collection of the following add-on policies for Perl::Critic. They're under a new "pulp" theme, plus other themes according to their function (see "POLICY THEMES" in Perl::Critic).
Perl::Critic
FOO < 123
See Perl::Critic::Policy::ValuesAndExpressions::ConstantBeforeLt.
! $x == $y
See Perl::Critic::Policy::ValuesAndExpressions::NotWithCompare.
See Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyCommas.
See Perl::Critic::Policy::ValuesAndExpressions::ProhibitNullStatements.
See Perl::Critic::Policy::Documentation::RequireEndBeforeLastPod.
__x
__nx
See Perl::Critic::Policy::Miscellanea::TextDomainPlaceholders.
See Perl::Critic::Policy::ValuesAndExpressions::UnexpandedSpecialLiteral.
ProhibitEmptyCommas and ProhibitNullStatements are cosmetic, the rest are about bugs. You can always enable or disable the ones you do or don't want. If you haven't realized it yet the various perlcritic builtin and add-on policies range from the sublime to the bizarre and in some cases are even mutually contradictory, so it's quite normal to pick and choose what you want reported!
http://www.geocities.com/user42_kevin/perl-critic-pulp/index.html
Copyright 2008 Kevin Ryde
Perl-Critic-Pulp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Perl-Critic-Pulp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Perl-Critic-Pulp. If not, see http://www.gnu.org/licenses.
To install Perl::Critic::Pulp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Pulp
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Pulp
For more information on module installation, please visit the detailed CPAN module installation guide.