forked from schwern/Object-ID
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.perlcriticrc
39 lines (31 loc) · 1.26 KB
/
.perlcriticrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Change the default message to show the policy name so we can shut it up if necessary
verbose = %m [%p] at %f line %l, near '%r'\n
# Force perlcritic to use color, even when run through a pager.
color = 1
# Use a pager.
pager = $PAGER
# Nuthin wrong with any of these.
[-BuiltinFunctions::RequireBlockMap]
[-BuiltinFunctions::RequireBlockGrep]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::ProhibitInterpolationOfLiterals]
[-Variables::RequireInitializationForLocalVars]
[-Variables::ProhibitPunctuationVars]
[-ControlStructures::ProhibitPostfixControls]
[-References::ProhibitDoubleSigils]
[-Documentation::RequirePodAtEnd]
[-Modules::ProhibitAutomaticExportation]
# RCS keywords? Get real.
[-Miscellanea::RequireRcsKeywords]
# No point putting a /x on really short regexes.
[RegularExpressions::RequireExtendedFormatting]
minimum_regex_length_to_complain_about = 5
# Extend the ability to play with @_ to 3 line subroutines.
[Subroutines::RequireArgUnpacking]
short_subroutine_statements = 3
# Inform perlcritic that Mouse turns on strictures
[TestingAndDebugging::RequireUseStrict]
equivalent_modules = Mouse
[TestingAndDebugging::RequireUseWarnings]
equivalent_modules = Mouse