summaryrefslogtreecommitdiff
path: root/src/tools/perlcheck/perlcriticrc
diff options
context:
space:
mode:
authorAndrew Dunstan2020-04-13 15:46:18 +0000
committerAndrew Dunstan2020-04-13 15:46:18 +0000
commit8930e43ecd3f683c457865131d7a932401a2188f (patch)
treef30db2de74a4b35c91222ecbcca02f5b85d28a36 /src/tools/perlcheck/perlcriticrc
parent7a6b017b34783eb7ee4e93f93a52bde2bb017c8c (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/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]