forked from zonemaster/zonemaster-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.perlcriticrc
164 lines (112 loc) · 4.11 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# Set default values
severity=4
verbose = %f: %m at line %l, column %c. %e. (Severity: %s, %p)\n
# severity 5 rules
[Perl::Critic::Policy::Subroutines::ProhibitReturnSort]
severity=5
[Perl::Critic::Policy::BuiltinFunctions::ProhibitSleepViaSelect]
severity=5
[Perl::Critic::Policy::BuiltinFunctions::RequireGlobFunction]
severity=5
[Perl::Critic::Policy::ClassHierarchies::ProhibitOneArgBless]
severity=5
[Perl::Critic::Policy::ControlStructures::ProhibitMutatingListFunctions]
severity=5
[Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval]
severity=5
[Perl::Critic::Policy::InputOutput::ProhibitBarewordFileHandles]
severity=5
[Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest]
severity=5
[Perl::Critic::Policy::Modules::ProhibitEvilModules]
severity=5
[Perl::Critic::Policy::Subroutines::ProhibitExplicitReturnUndef]
severity=5
[Perl::Critic::Policy::Subroutines::ProhibitNestedSubs]
severity=5
[Perl::Critic::Policy::Subroutines::ProhibitSubroutinePrototypes]
severity=5
[Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict]
severity=5
[Perl::Critic::Policy::TestingAndDebugging::ProhibitNoWarnings]
severity=5
[Perl::Critic::Policy::TestingAndDebugging::ProhibitProlongedStrictureOverride]
severity=5
statements = 15
[Perl::Critic::Policy::TestingAndDebugging::RequireUseStrict]
severity=5
[Perl::Critic::Policy::TestingAndDebugging::RequireUseWarnings]
severity=5
[Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros]
severity=5
[Perl::Critic::Policy::Variables::ProhibitConditionalDeclarations]
severity=5
#[Perl::Critic::Policy::Variables::ProhibitEvilVariables]
#severity=5
[Perl::Critic::Policy::Variables::RequireLexicalLoopIterators]
severity=5
[Perl::Critic::Policy::InputOutput::ProhibitTwoArgOpen]
severity=5
[Perl::Critic::Policy::Modules::RequireFilenameMatchesPackage]
severity=5
[Perl::Critic::Policy::CodeLayout::RequireTidyCode]
severity=3
# severity 4 rules
[Perl::Critic::Policy::Miscellanea::ProhibitUnrestrictedNoCritic]
severity=4
[Perl::Critic::Policy::Miscellanea::ProhibitUselessNoCritic]
severity=4
[Perl::Critic::Policy::Modules::RequireExplicitInclusion]
severity=4
[-Perl::Critic::Policy::Subroutines::ProhibitCallsToUndeclaredSubs]
severity=4
[Perl::Critic::Policy::Subroutines::ProhibitCallsToUnexportedSubs]
severity=4
[Perl::Critic::Policy::Subroutines::ProhibitExportingUndeclaredSubs]
severity=4
[Perl::Critic::Policy::Subroutines::ProhibitQualifiedSubDeclarations]
severity=4
[Perl::Critic::Policy::CodeLayout::RequireConsistentNewlines]
severity=4
[Perl::Critic::Policy::ControlStructures::ProhibitLabelsWithSpecialBlockNames]
severity=4
[Perl::Critic::Policy::ControlStructures::ProhibitUnreachableCode]
severity=4
[Perl::Critic::Policy::InputOutput::ProhibitExplicitStdin]
severity=4
[Perl::Critic::Policy::InputOutput::ProhibitOneArgSelect]
severity=4
[Perl::Critic::Policy::InputOutput::ProhibitReadlineInForLoop]
severity=4
[Perl::Critic::Policy::InputOutput::RequireBriefOpen]
severity=4
[Perl::Critic::Policy::Modules::ProhibitAutomaticExportation]
severity=4
[Perl::Critic::Policy::Modules::ProhibitMultiplePackages]
severity=4
[Perl::Critic::Policy::Modules::RequireExplicitPackage]
severity=4
[Perl::Critic::Policy::Objects::ProhibitIndirectSyntax]
severity=4
[Perl::Critic::Policy::Subroutines::ProhibitBuiltinHomonyms]
severity=4
[Perl::Critic::Policy::Subroutines::RequireArgUnpacking]
severity=4
[Perl::Critic::Policy::Subroutines::RequireFinalReturn]
severity=4
[Perl::Critic::Policy::ValuesAndExpressions::ProhibitCommaSeparatedStatements]
severity=4
[Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma]
severity=4
[Perl::Critic::Policy::ValuesAndExpressions::ProhibitMixedBooleanOperators]
severity=4
[Perl::Critic::Policy::Variables::ProhibitMatchVars]
severity=4
[Perl::Critic::Policy::Variables::RequireLocalizedPunctuationVars]
severity=4
[Perl::Critic::Policy::Variables::RequireNegativeIndices]
severity=4
# intentionally disabled rules
[-Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalCan]
[-Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa]
[-Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls]