diff options
author | Andrew Dunstan | 2020-04-13 15:46:18 +0000 |
---|---|---|
committer | Andrew Dunstan | 2020-04-13 15:46:18 +0000 |
commit | 8930e43ecd3f683c457865131d7a932401a2188f (patch) | |
tree | f30db2de74a4b35c91222ecbcca02f5b85d28a36 /src/tools/perlcheck/perlcriticrc | |
parent | 7a6b017b34783eb7ee4e93f93a52bde2bb017c8c (diff) |
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.
Diffstat (limited to 'src/tools/perlcheck/perlcriticrc')
-rw-r--r-- | src/tools/perlcheck/perlcriticrc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/perlcheck/perlcriticrc b/src/tools/perlcheck/perlcriticrc index 12c09a453e7..bd848a9a653 100644 --- a/src/tools/perlcheck/perlcriticrc +++ b/src/tools/perlcheck/perlcriticrc @@ -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] |