-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.perlcriticrc
96 lines (92 loc) · 3.7 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
## Perl::Critic things we are not going to worry about:
verbose = 8
verbose = %F [%p] %m at line %l, column %c. (Severity: %s)\n
severity = 1
profile-strictness = quiet
[-Bangs::ProhibitDebuggingModules]
[-Bangs::ProhibitNumberedNames]
[-Bangs::ProhibitVagueNames]
[-BuiltinFunctions::ProhibitBooleanGrep]
[-BuiltinFunctions::ProhibitComplexMappings]
[-BuiltinFunctions::ProhibitReverseSortBlock]
[-BuiltinFunctions::ProhibitUselessTopic]
[-CodeLayout::ProhibitHashBarewords]
[-CodeLayout::ProhibitParensWithBuiltins]
[-CodeLayout::ProhibitSpaceIndentation]
[-CodeLayout::RequireASCII]
[-CodeLayout::RequireTidyCode]
[-CodeLayout::RequireUseUTF8]
[-CodeLayout::TabIndentSpaceAlign]
[-CognitiveComplexity::ProhibitExcessCognitiveComplexity]
[-Compatibility::PerlMinimumVersionAndWhy]
[-Compatibility::ProhibitThreeArgumentOpen]
[-ControlStructures::ProhibitCascadingIfElse]
[-ControlStructures::ProhibitDeepNests]
[-ControlStructures::ProhibitPostfixControls]
[-Documentation::RequirePod]
[-Editor::RequireEmacsFileVariables]
[-ErrorHandling::RequireCarping]
[-ErrorHandling::RequireUseOfExceptions]
[-Freenode::Each]
[-Freenode::WhileDiamondDefaultAssignment]
[-InputOutput::ProhibitBacktickOperators]
[-InputOutput::ProhibitOneArgSelect]
[-InputOutput::RequireCheckedSyscalls]
[-InputOutput::RequireCheckedClose]
[-Lax::ProhibitEmptyQuotes::ExceptAsFallback]
[-logicLAB::ProhibitShellDispatch]
[-logicLAB::ProhibitUseLib]
[-logicLAB::RequireParamsValidate]
[-logicLAB::RequireSheBang]
[-logicLAB::RequireVersionFormat]
[-Miscellanea::ProhibitUnrestrictedNoCritic]
[-Miscellanea::ProhibitUselessNoCritic]
[-Miscellanea::RequireRcsKeywords]
[-Modules::ProhibitExcessMainComplexity]
[-Modules::RequireVersionVar]
[-NamingConventions::ProhibitAmbiguousNames]
[-OTRS::ProhibitDumper]
[-OTRS::ProhibitLocaltime]
[-OTRS::ProhibitLowPrecedenceOps]
[-OTRS::ProhibitOpen]
[-OTRS::ProhibitRequire]
[-OTRS::RequireCamelCase]
[-OTRS::RequireParensWithMethods]
[-References::ProhibitDoubleSigils]
[-RegularExpressions::ProhibitCaptureWithoutTest]
[-RegularExpressions::ProhibitComplexRegexes]
[-RegularExpressions::ProhibitEnumeratedClasses]
[-RegularExpressions::ProhibitEscapedMetacharacters]
[-RegularExpressions::ProhibitUselessTopic]
[-RegularExpressions::RequireDefault]
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireExtendedFormatting]
[-RegularExpressions::RequireExtendedFormattingExceptForSplit]
[-RegularExpressions::RequireLineBoundaryMatching]
[-Reneeb::ProhibitBlockEval]
[-Subroutines::ProhibitExcessComplexity]
[-Subroutines::ProhibitManyArgs]
[-Tics::ProhibitLongLines]
[-TooMuchCode::ProhibitDuplicateLiteral]
[-ValuesAndExpressions::ProhibitAccessOfPrivateData]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitFiletest_f]
[-ValuesAndExpressions::ProhibitImplicitNewlines]
[-ValuesAndExpressions::ProhibitMagicNumbers]
[-ValuesAndExpressions::ProhibitMixedBooleanOperators]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::ProhibitVersionStrings]
[-ValuesAndExpressions::RequireConstantOnLeftSideOfEquality]
[-ValuesAndExpressions::RequireNumberSeparators]
[-ValuesAndExpressions::RestrictLongStrings]
[-Variables::ProhibitPackageVars]
[-Variables::ProhibitPunctuationVars]
[-Variables::RequireHungarianNotation]
[-Variables::RequireInitializationForLocalVars]
[-Variables::RequireLocalizedPunctuationVars]
## Things that do not work well:
[-InputOutput::RequireBriefOpen]
[-ErrorHandling::RequireCheckingReturnValueOfEval]
[-TooMuchCode::ProhibitUnnecessaryUTF8Pragma]
[Subroutines::ProhibitCallsToUndeclaredSubs]
exempt_subs = Test::More::diag Test::More::is Test::More::fail Test::More::like Test::More::ok Test::More::pass Test::More::plan Test::More::skip Test::More::unlike Test::More::BAIL_OUT