Login
Now that we have ProhibitUselessNoCritic, we can
[gknop/Perl-Critic.git] / examples / perlcriticrc-conway
1 ##############################################################################
2 # This Perl::Critic configuration file sets the Policy severity levels
3 # according to Damian Conway's own personal recommendations.  Feel free to
4 # use this as your own, or make modifications.
5 ##############################################################################
6
7 [Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr]
8 severity   = 3
9
10 [Perl::Critic::Policy::BuiltinFunctions::ProhibitReverseSortBlock]
11 severity   = 1
12
13 [Perl::Critic::Policy::BuiltinFunctions::ProhibitSleepViaSelect]
14 severity   = 5
15
16 [Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval]
17 severity   = 5
18
19 [Perl::Critic::Policy::BuiltinFunctions::ProhibitStringySplit]
20 severity   = 2
21
22 [Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalCan]
23 severity   = 4
24
25 [Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa]
26 severity   = 4
27
28 [Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidGrep]
29 severity   = 3
30
31 [Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap]
32 severity   = 3
33
34 [Perl::Critic::Policy::BuiltinFunctions::RequireBlockGrep]
35 severity   = 4
36
37 [Perl::Critic::Policy::BuiltinFunctions::RequireBlockMap]
38 severity   = 4
39
40 [Perl::Critic::Policy::BuiltinFunctions::RequireGlobFunction]
41 severity   = 5
42
43 [Perl::Critic::Policy::BuiltinFunctions::RequireSimpleSortBlock]
44 severity   = 3
45
46 [Perl::Critic::Policy::ClassHierarchies::ProhibitAutoloading]
47 severity   = 3
48
49 [Perl::Critic::Policy::ClassHierarchies::ProhibitExplicitISA]
50 severity   = 4
51
52 [Perl::Critic::Policy::ClassHierarchies::ProhibitOneArgBless]
53 severity   = 5
54
55 [Perl::Critic::Policy::CodeLayout::ProhibitHardTabs]
56 severity   = 3
57
58 [Perl::Critic::Policy::CodeLayout::ProhibitParensWithBuiltins]
59 severity   = 1
60
61 [Perl::Critic::Policy::CodeLayout::ProhibitQuotedWordLists]
62 severity   = 2
63
64 [Perl::Critic::Policy::CodeLayout::RequireConsistentNewlines]
65 severity   = 4
66
67 [Perl::Critic::Policy::CodeLayout::RequireTidyCode]
68 severity   = 1
69
70 [Perl::Critic::Policy::CodeLayout::RequireTrailingCommas]
71 severity   = 3
72
73 [Perl::Critic::Policy::ControlStructures::ProhibitCStyleForLoops]
74 severity   = 3
75
76 [Perl::Critic::Policy::ControlStructures::ProhibitCascadingIfElse]
77 severity   = 3
78
79 [Perl::Critic::Policy::ControlStructures::ProhibitDeepNests]
80 severity   = 3
81
82 [Perl::Critic::Policy::ControlStructures::ProhibitMutatingListFunctions]
83 severity   = 5
84
85 [Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls]
86 severity   = 4
87
88 [Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks]
89 severity   = 4
90
91 [Perl::Critic::Policy::ControlStructures::ProhibitUnreachableCode]
92 severity   = 4
93
94 [Perl::Critic::Policy::ControlStructures::ProhibitUntilBlocks]
95 severity   = 4
96
97 [Perl::Critic::Policy::Documentation::RequirePodAtEnd]
98 severity   = 2
99
100 [Perl::Critic::Policy::Documentation::RequirePodSections]
101 severity   = 2
102
103 [Perl::Critic::Policy::ErrorHandling::RequireCarping]
104 severity   = 4
105
106 [Perl::Critic::Policy::InputOutput::ProhibitBacktickOperators]
107 severity   = 3
108
109 [Perl::Critic::Policy::InputOutput::ProhibitBarewordFileHandles]
110 severity   = 5
111
112 [Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest]
113 severity   = 4
114
115 [Perl::Critic::Policy::InputOutput::ProhibitOneArgSelect]
116 severity   = 4
117
118 [Perl::Critic::Policy::InputOutput::ProhibitReadlineInForLoop]
119 severity   = 5
120
121 [Perl::Critic::Policy::InputOutput::ProhibitTwoArgOpen]
122 severity   = 4
123
124 [Perl::Critic::Policy::InputOutput::RequireBracedFileHandleWithPrint]
125 severity   = 3
126
127 [Perl::Critic::Policy::Miscellanea::ProhibitFormats]
128 severity   = 3
129
130 [Perl::Critic::Policy::Miscellanea::ProhibitTies]
131 severity   = 4
132
133 [-Perl::Critic::Policy::Miscellanea::RequireRcsKeywords]
134
135 [Perl::Critic::Policy::Modules::ProhibitAutomaticExportation]
136 severity   = 4
137
138 [Perl::Critic::Policy::Modules::ProhibitEvilModules]
139 severity   = 5
140
141 [Perl::Critic::Policy::Modules::ProhibitMultiplePackages]
142 severity   = 4
143
144 [Perl::Critic::Policy::Modules::RequireBarewordIncludes]
145 severity   = 5
146
147 [Perl::Critic::Policy::Modules::RequireEndWithOne]
148 severity   = 4
149
150 [Perl::Critic::Policy::Modules::RequireExplicitPackage]
151 severity   = 4
152
153 [Perl::Critic::Policy::Modules::RequireFilenameMatchesPackage]
154 severity   = 5
155
156 [Perl::Critic::Policy::Modules::RequireVersionVar]
157 severity   = 4
158
159 [Perl::Critic::Policy::NamingConventions::ProhibitAmbiguousNames]
160 severity   = 3
161
162 [Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseSubs]
163 severity   = 1
164
165 [Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseVars]
166 severity   = 1
167
168 [Perl::Critic::Policy::References::ProhibitDoubleSigils]
169 severity   = 4
170
171 [Perl::Critic::Policy::RegularExpressions::ProhibitCaptureWithoutTest]
172 severity   = 4
173
174 [Perl::Critic::Policy::RegularExpressions::RequireExtendedFormatting]
175 severity   = 5
176
177 [Perl::Critic::Policy::RegularExpressions::RequireLineBoundaryMatching]
178 severity   = 5
179
180 [Perl::Critic::Policy::Subroutines::ProhibitAmpersandSigils]
181 severity   = 2
182
183 [Perl::Critic::Policy::Subroutines::ProhibitBuiltinHomonyms]
184 severity   = 4
185
186 [Perl::Critic::Policy::Subroutines::ProhibitExcessComplexity]
187 severity   = 3
188
189 [Perl::Critic::Policy::Subroutines::ProhibitExplicitReturnUndef]
190 severity   = 5
191
192 [Perl::Critic::Policy::Subroutines::ProhibitSubroutinePrototypes]
193 severity   = 4
194
195 [Perl::Critic::Policy::Subroutines::ProtectPrivateSubs]
196 severity   = 3
197
198 [Perl::Critic::Policy::Subroutines::RequireFinalReturn]
199 severity   = 5
200
201 [Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict]
202 severity   = 5
203
204 [Perl::Critic::Policy::TestingAndDebugging::ProhibitNoWarnings]
205 severity   = 4
206
207 [Perl::Critic::Policy::TestingAndDebugging::ProhibitProlongedStrictureOverride]
208 severity   = 4
209
210 [Perl::Critic::Policy::TestingAndDebugging::RequireTestLabels]
211 severity   = 3
212
213 [Perl::Critic::Policy::TestingAndDebugging::RequireUseStrict]
214 severity   = 5
215
216 [Perl::Critic::Policy::TestingAndDebugging::RequireUseWarnings]
217 severity   = 4
218
219 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma]
220 severity   = 4
221
222 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes]
223 severity   = 2
224
225 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitEscapedCharacters]
226 severity   = 2
227
228 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitInterpolationOfLiterals]
229 severity   = 1
230
231 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros]
232 severity   = 5
233
234 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitMismatchedOperators]
235 severity   = 2
236
237 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitMixedBooleanOperators]
238 severity   = 4
239
240 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitNoisyQuotes]
241 severity   = 2
242
243 [Perl::Critic::Policy::ValuesAndExpressions::ProhibitVersionStrings]
244 severity   = 3
245
246 [Perl::Critic::Policy::ValuesAndExpressions::RequireInterpolationOfMetachars]
247 severity   = 1
248
249 [Perl::Critic::Policy::ValuesAndExpressions::RequireNumberSeparators]
250 severity   = 2
251
252 [Perl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTerminator]
253 severity   = 4
254
255 [Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator]
256 severity   = 4
257
258 [Perl::Critic::Policy::Variables::ProhibitConditionalDeclarations]
259 severity   = 5
260
261 [Perl::Critic::Policy::Variables::ProhibitLocalVars]
262 severity   = 2
263
264 [Perl::Critic::Policy::Variables::ProhibitMatchVars]
265 severity   = 4
266
267 [Perl::Critic::Policy::Variables::ProhibitPackageVars]
268 severity   = 3
269
270 [Perl::Critic::Policy::Variables::ProhibitPunctuationVars]
271 severity   = 2
272
273 [Perl::Critic::Policy::Variables::ProtectPrivateVars]
274 severity   = 3
275
276 [Perl::Critic::Policy::Variables::RequireInitializationForLocalVars]
277 severity   = 5
278
279 [Perl::Critic::Policy::Variables::RequireLexicalLoopIterators]
280 severity   = 5
281
282 [Perl::Critic::Policy::Variables::RequireNegativeIndices]
283 severity   = 4