forked from yanick/Dancer2-Plugin-REST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.perlcriticrc
57 lines (38 loc) · 1.46 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
55
56
57
verbose = [%p] %m at %f line %l, near '%r'\n
severity = 2
# we don't want these POD rules
[-Documentation::RequirePodSections]
# we want to be able to define short getters
[-Subroutines::RequireFinalReturn]
# we use eval strings in Dancer for dynamic loading
[-BuiltinFunctions::ProhibitStringyEval]
# we use magic closure bindings in some places
[-TestingAndDebugging::ProhibitNoStrict]
[-TestingAndDebugging::ProhibitNoWarnings]
# We're not under CVS! :)
[-Miscellanea::RequireRcsKeywords]
# only Dancer.pm matters here
[-Modules::RequireVersionVar]
# we use postifx controls
[-ControlStructures::ProhibitPostfixControls]
# we provide syntactic sugar, so we need them
[-Subroutines::ProhibitSubroutinePrototypes]
# we check $@
[-ErrorHandling::RequireCheckingReturnValueOfEval]
# we use $@ and $!
[-Variables::ProhibitPunctuationVars]
# we don't check close
[-InputOutput::RequireCheckedClose]
# I really don't think q{/} is more readable than '/'...
[-ValuesAndExpressions::ProhibitNoisyQuotes]
# We don't care about POD links for now
[-Documentation::RequirePodLinksIncludeText]
[-RegularExpressions::RequireExtendedFormatting]
minimum_regex_length_to_complain_about = 5
# we have name and log here
[-Subroutines::ProhibitBuiltinHomonyms]
[-ValuesAndExpressions::ProhibitMagicNumbers]
[-Subroutines::RequireArgUnpacking]
[-Modules::ProhibitAutomaticExportation]
[-ValuesAndExpressions::ProhibitCommaSeparatedStatements]
[-ControlStructures::ProhibitUnlessBlocks]