Subject: | ## no critic call should ignore white spaces in argument list |
If there's white space before the leading argument in the ## no critic
argument list, the argument list is ignored and *all* policies are
ignored, not just those listed. Unfortunately this means that a simple
typo will disable all checks. Ouch!
For example,
## no critic ( ProhibitAccessOfPrivateData)
causes *all* policies to be ignored, while
## no critic (ProhibitAccessOfPrivateData)
works as intended. I've attached a short script for which perlcritic
should output something like this:
% perlcritic -verbose 4 foo.pl
Stricture disabled at line 8, column 1. See page 429 of PBP. (Severity: 5)
But instead it outputs:
% perlcritic -verbose 4 foo.pl
foo.pl source OK
Thanks,
Diab