forked from bucardo/bucardo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.perlcriticrc
118 lines (104 loc) · 3.68 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
## perlcritic file for Bucardo
## Usage: perlcritic -profile <thisfile> <scriptname>
verbose = 8
severity = 1
profile-strictness = quiet
##
## Five:
##
[-BuiltinFunctions::ProhibitStringyEval]
[-ControlStructures::ProhibitMutatingListFunctions]
[-Subroutines::ProhibitNestedSubs]
[-ValuesAndExpressions::ProhibitAccessOfPrivateData]
[-Subroutines::ProhibitExplicitReturnUndef]
##
## Four:
##
[-BuiltinFunctions::RequireBlockGrep]
## We are just fine with 'die', thanks very much
[-ErrorHandling::RequireUseOfExceptions]
[-InputOutput::ProhibitOneArgSelect]
## Too many false positives for this one:
[-InputOutput::RequireBriefOpen]
[-Lax::RequireEndWithTrueConst]
[-Modules::RequireEndWithOne]
## This does such a poor job we have to exclude it
[-RegularExpressions::ProhibitCaptureWithoutTest]
[-RegularExpressions::ProhibitFixedStringMatches]
[-ValuesAndExpressions::ProhibitConstantPragma]
[-ValuesAndExpressions::ProhibitMixedBooleanOperators]
[-Variables::RequireLocalizedPunctuationVars]
[-InputOutput::ProhibitExplicitStdin]
##
## Three:
##
[-Bangs::ProhibitNumberedNames]
[-Bangs::ProhibitVagueNames]
[-BuiltinFunctions::ProhibitComplexMappings]
[-CodeLayout::RequireUseUTF8]
[-ControlStructures::ProhibitCascadingIfElse]
[-ControlStructures::ProhibitDeepNests]
[-Documentation::RequirePODUseEncodingUTF8]
[-ErrorHandling::RequireCarping]
[-ErrorHandling::RequireCheckingReturnValueOfEval]
[-InputOutput::ProhibitBacktickOperators]
[-Lax::ProhibitComplexMappings::LinesNotStatements]
[-Miscellanea::ProhibitUnrestrictedNoCritic]
[-Modules::ProhibitExcessMainComplexity]
[-Modules::ProhibitUseQuotedVersion]
[-RegularExpressions::ProhibitComplexRegexes]
[-RegularExpressions::RequireExtendedFormatting]
[-Subroutines::ProhibitExcessComplexity]
[-Subroutines::ProhibitManyArgs]
[-ValuesAndExpressions::ProhibitImplicitNewlines]
[-Variables::ProhibitPackageVars]
[-Variables::RequireInitializationForLocalVars]
[-ValuesAndExpressions::ProhibitVersionStrings]
##
## Two:
##
[-Bangs::ProhibitCommentedOutCode]
[-Bangs::ProhibitFlagComments]
[-BuiltinFunctions::ProhibitBooleanGrep]
[-BuiltinFunctions::ProhibitStringySplit]
[-CodeLayout::ProhibitQuotedWordLists]
[-ControlStructures::ProhibitCStyleForLoops]
[-ControlStructures::ProhibitPostfixControls]
[-ControlStructures::ProhibitUnlessBlocks]
[-Documentation::RequirePodSections]
[-Editor::RequireEmacsFileVariables]
[-Lax::ProhibitEmptyQuotes::ExceptAsFallback]
## This one really ought to be removed entirely:
## Giving too many false positives in bucardo:
[-Miscellanea::ProhibitUselessNoCritic]
[-Miscellanea::RequireRcsKeywords]
[-References::ProhibitDoubleSigils]
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireLineBoundaryMatching]
[-Tics::ProhibitLongLines]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitMagicNumbers]
## This one has such potential to be useful, but complains about some wrong things:
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::RequireNumberSeparators]
[-ValuesAndExpressions::RestrictLongStrings]
[-Variables::ProhibitPunctuationVars]
##
## One:
##
[-BuiltinFunctions::ProhibitReverseSortBlock]
[-CodeLayout::ProhibitParensWithBuiltins]
[-CodeLayout::RequireTidyCode]
[-Documentation::PodSpelling]
## Yeah, because everyone checks the return value of 'print'
[-InputOutput::RequireCheckedSyscalls]
[-Miscellanea::RequireRcsKeywords]
[-NamingConventions::Capitalization]
[-RegularExpressions::ProhibitEnumeratedClasses]
[-RegularExpressions::ProhibitEscapedMetacharacters]
[-RegularExpressions::ProhibitSingleCharAlternation]
## Change the severity level of some specific items
[CodeLayout::ProhibitTrailingWhitespace]
severity = 5
[Subroutines::ProhibitBuiltinHomonyms]
severity = 5