forked from jonswar/perl-chi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperlcriticrc
35 lines (25 loc) · 1.12 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
severity = 3
# Some methods (like $cache->get()) are only meant to be called in scalar context,
# so really should always return undef rather than the empty list.
[-Subroutines::ProhibitExplicitReturnUndef]
# Constants are necessary for optimal performance - some users may not have Readonly::XS
[-ValuesAndExpressions::ProhibitConstantPragma]
# These are just too restrictive IMO
[-Subroutines::RequireArgUnpacking]
[-Subroutines::RequireFinalReturn]
[-NamingConventions::ProhibitAmbiguousNames]
# Necessary for too many test classes - at some point would consider turning off just for test classes
[-Modules::ProhibitMultiplePackages]
# Jury's still out on these
[-RegularExpressions::RequireExtendedFormatting]
# Unfortunately, this will mistakenly hit on anon hash references
[-ValuesAndExpressions::ProhibitCommaSeparatedStatements]
# Exception needed for references to $CHI::Driver::TestTime
[Variables::ProhibitPackageVars]
packages = CHI::Driver
# Necessary for generating named subroutines
[TestingAndDebugging::ProhibitNoStrict]
allow = refs
# Default too short
[RegularExpressions::ProhibitComplexRegexes]
max_characters = 100