Subject: | use strict and use warnings *too* verbose. |
The purpose of the use strict and use warnings tests are, I think, to note the fact that you
haven't got them in your code, not actually note every line of code in the source that fails to
be preceded by the pragma usage.
Having the violations be reported multiple times per file drowns out any other reports.
Given this code:
print 'hi ';
print 'world';
perlcritic (when testing only for TestingAndDebugging::RequireUseStrict), currently outputs:
Code before strictures are enabled at line 1, column 1.
Code before strictures are enabled at line 2, column 1.
Desired output is just the first line: that's sufficient. Same for RequireUseWarnings.
Apologies if this should be reported against the Policies themselves.