Print policy name in perlcritic messages

This makes it easier to do a web search for details of the policy that's
been violated, as well as displaying the name that might be needed for a
policy override.

Various perlcritic settings changes are being discussed, but this one
should be uncontroversial.
This commit is contained in:
Andrew Dunstan 2020-04-13 11:46:18 -04:00
parent 7a6b017b34
commit 8930e43ecd
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,12 @@ severity = 5
theme = core
# print the policy name as well as the normal output
verbose = %f: %m at line %l, column %c. %e. ([%p] Severity: %s)\n
# Note: for policy descriptions see https://metacpan.org/release/Perl-Critic
# allow octal constants with leading zeros
[-ValuesAndExpressions::ProhibitLeadingZeros]