-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.perlcriticrc
54 lines (45 loc) · 1.53 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# vim: ft=config
severity = cruel
theme = pbp || core || bugs
pager = less
verbose = %f: [%p] %m at line %l, column %c. (Severity: %s)\n
exclude = Documentation
[TestingAndDebugging::RequireUseStrict]
equivalent_modules = Moo
[TestingAndDebugging::RequireUseWarnings]
equivalent_modules = Moo
[TestingAndDebugging::ProhibitNoWarnings]
allow_with_category_restriction = 1
[TestingAndDebugging::ProhibitNoStrict]
allow = vars subs refs
[Variables::RequireLocalizedPunctuationVars]
allow = @ARGV $ARGV $0
[Subroutines::RequireArgUnpacking]
short_subroutine_statements = 5
allow_subscripts = 1
[Subroutines::ProhibitUnusedPrivateSubroutines]
private_name_regex = _(?!build_|handle_)\w+
[Subroutines::ProhibitExcessComplexity]
max_mccabe = 30
[Modules::ProhibitExcessMainComplexity]
max_mccabe = 30
[ErrorHandling::RequireCarping]
severity = brutal
[BuiltinFunctions::ProhibitComplexMappings]
max_statements = 2
[InputOutput::RequireBriefOpen]
lines = 15
[-ControlStructures::ProhibitPostfixControls]
[-ControlStructures::ProhibitUnlessBlocks]
[-ControlStructures::ProhibitNegativeExpressionsInUnlessAndUntilConditions]
[-Modules::ProhibitMultiplePackages]
[-Modules::RequireVersionVar]
[-References::ProhibitDoubleSigils]
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireExtendedFormatting]
[-RegularExpressions::RequireLineBoundaryMatching]
[-Subroutines::ProhibitBuiltinHomonyms]
[-ValuesAndExpressions::ProhibitConstantPragma]
[-Variables::ProhibitPackageVars]
[-Variables::ProhibitPunctuationVars]
[-Modules::RequireExplicitPackage]