Subject: | False positive in TestingAndDebugging::ProhibitNoWarnings (bad parsing) |
Perl::Critic::Policy::TestingAndDebugging::ProhibitNoWarnings
incorrectly flags the following statement even when
"allow_with_category_restriction" is set:
no warnings 'qw';
This is because the code to parse the "no warnings" statement explicitly
ignores the word "qw", intending to exclude the 'qw' at the beginning of
a quoted word list of warnings to disable, but also ignoring the warning
whose name is 'qw'.
Moral: Parsing quoting is hard.