From: Andrew Dunstan Date: Mon, 13 Apr 2020 15:46:18 +0000 (-0400) Subject: Print policy name in perlcritic messages X-Git-Tag: REL_13_BETA1~255 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8930e43ecd3f683c457865131d7a932401a2188f;p=thirdparty%2Fpostgresql.git 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. --- 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]