Subject: | add an option to perlcritic to display de-duped explanations of all violations |
It would be useful if perlcritic could optionally output a de-duplicated
list of the explanations of all violated policies at the end of its
report. Having the explanation output for each violation is much too
verbose (severity set to 9 or 10), but not having the description to
hand can be too cryptic (any other predefined severity).
Looks like this feature could be implemented simply by scanning
@violations in the for loop in critique() in the perlcritic script,
building up the set of policies violated and then outputting that set
after the loop (if the summary option was specified).
I could supply a patch if you are interested.