Skip to content

Commit 8930e43

Browse files
committed
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.
1 parent 7a6b017 commit 8930e43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/perlcheck/perlcriticrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ severity = 5
1010

1111
theme = core
1212

13+
# print the policy name as well as the normal output
14+
verbose = %f: %m at line %l, column %c. %e. ([%p] Severity: %s)\n
15+
16+
# Note: for policy descriptions see https://metacpan.org/release/Perl-Critic
17+
18+
1319
# allow octal constants with leading zeros
1420
[-ValuesAndExpressions::ProhibitLeadingZeros]
1521

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy