Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 36271
Status: rejected
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: amir.aharoni [...] mail.huji.ac.il
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.084
Fixed in: (no value)



Subject: "no critic" allows only policy names, but no fine-tuning as in .perlcriticrc
There are two main ways to disable P::C policies: using "## no critic" comments and using .perlcriticrc. Some policies ca be fine-tuned using .perlcriticrc. For example: [Variables::ProhibitPunctuationVars] allow = %+ $+ [ControlStructures::ProhibitMutatingListFunctions] list_funcs = map grep List::Util::first I couldn't find a way to do it with "## no critic" comments, but it would be useful.
That's a really interesting idea, but I think it would complicate things dramatically. As they are currently implemented, Policy objects are generally immutable once they've been instantiated by the PolicyFactory. I'm going to mark this ticket as 'rejected' just to clear it off the queue. Don't take it personally ;) -Jeff