in reply to Quieting perlcritic when passing @_ to Params::Validate

I'm a fan of perlcritic too, but it does have its annoyances.

I'm not aware of a method to turn off a criticism at the granularity you want.

I tend to turn them off for a single module and add a very clear comment why I have done so.

Here's an example taken from one of my perlcritic.t files.

# Perl::Critic Exclusions # ProhibitAccessOfPrivateData # Can't distinguish $hash_ref->{$key} from $blessed_object->{$in +st_var} eval { use Test::Perl::Critic 1.02 ( -exclude => [q{ProhibitAccessOfPrivateData}] ); };

-- Ken