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