aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2020-04-13 11:46:18 -0400
committerAndrew Dunstan <andrew@dunslane.net>2020-04-13 11:46:18 -0400
commit8930e43ecd3f683c457865131d7a932401a2188f (patch)
treef30db2de74a4b35c91222ecbcca02f5b85d28a36
parent7a6b017b34783eb7ee4e93f93a52bde2bb017c8c (diff)
downloadpostgresql-8930e43ecd3f683c457865131d7a932401a2188f.tar.gz
postgresql-8930e43ecd3f683c457865131d7a932401a2188f.zip
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.
-rw-r--r--src/tools/perlcheck/perlcriticrc6
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]