in reply to Why can't I find all of the Damian Conway Perl::Critic Policies?

As the previous answer said, although many Perl::Critic policies are based on the PBP book, not all ideas from PBP have had Perl::Critic policies written for them. Some of them lend themselves to easy automated checking, such as "#209 never use the one argument form of bless"; while others like "#237 never assume that a warning-free compilation implies correctness" seem silly to even attempt to automatically test.

By the way, if you use fieldhashes (see Hash::FieldHash or Hash::Util::FieldHash) then there's no need to provide destructors for inside out objects.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re: Why can't I find all of the Damian Conway Perl::Critic Policies?

Replies are listed 'Best First'.
Re^2: Why can't I find all of the Damian Conway Perl::Critic Policies?
by Anonymous Monk on Jul 09, 2012 at 20:48 UTC

    There's an easy solution to that specific one:

    BEGIN { warn "Warning: Rule 237 applies - Appearances can be deceiving.\n"; }

    Then you just have to worry about people who ignore warnings.