-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.perlcriticrc
121 lines (109 loc) · 4.23 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
# Global options
# pager = less
color = 1
verbose = %f#%l.%c:\t[%s - %p]\t%m\t:%r\n
# Enabled policies with changed default(s)
[Compatibility::PerlMinimumVersionAndWhy]
above_version = 5.008008
skip_checks = _perl5_5010_operators _Pulp__5010_operators__fix
[ControlStructures::ProhibitPostfixControls]
allow = for
[Documentation::RequirePodSections]
lib_sections = NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHOR | COPYRIGHT AND LICENSE
script_sections = NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHOR | COPYRIGHT AND LICENSE
#source = book
[ErrorHandling::RequireCarping]
allow_in_main_unless_in_subroutine = 1
[InputOutput::RequireCheckedSyscalls]
exclude_functions = close print say
[Tics::ProhibitLongLines]
base_max = 81
hard_max = 133
pct_allowed = 4
[Variables::RequireLocalizedPunctuationVars]
allow = @ARGV %ENV %SIG $| $@
[ValuesAndExpressions::RequireNumberSeparators]
min_value = 100000
# All disabled policies
[-Bangs::ProhibitBitwiseOperators]
[-Bangs::ProhibitCommentedOutCode]
[-Bangs::ProhibitDebuggingModules]
[-Bangs::ProhibitFlagComments]
[-Bangs::ProhibitNumberedNames]
[-Bangs::ProhibitRefProtoOrProto]
[-Bangs::ProhibitVagueNames]
[-BuiltinFunctions::ProhibitComplexMappings]
[-BuiltinFunctions::ProhibitReverseSortBlock]
# Too many false positives for boolean grep
[-BuiltinFunctions::ProhibitVoidGrep]
[-BuiltinFunctions::RequireBlockGrep]
[-ClassHierarchies::ProhibitExplicitISA]
[-CodeLayout::ProhibitHardTabs]
[-CodeLayout::ProhibitHashBarewords]
[-CodeLayout::ProhibitParensWithBuiltins]
[-CodeLayout::RequireTidyCode]
[-CodeLayout::RequireUseUTF8]
[-Compatibility::ProhibitThreeArgumentOpen]
[-ControlStructures::ProhibitCascadingIfElse]
[-ControlStructures::ProhibitDeepNests]
[-ControlStructures::ProhibitUnlessBlocks]
[-Documentation::PodSpelling]
[-Documentation::RequirePodAtEnd]
#-Documentation::RequirePodLinksIncludeText]
[-Documentation::RequirePODUseEncodingUTF8]
#-Dynamic::ValidateAgainstSymbolTable]
[-Editor::RequireEmacsFileVariables]
[-ErrorHandling::RequireUseOfExceptions]
[-Freenode::EmptyReturn]
[-Freenode::Wantarray]
[-Freenode::WhileDiamondDefaultAssignment]
[-InputOutput::ProhibitBacktickOperators]
[-InputOutput::ProhibitInteractiveTest]
[-InputOutput::ProhibitOneArgSelect]
[-InputOutput::RequireBracedFileHandleWithPrint]
[-InputOutput::RequireBriefOpen]
[-InputOutput::RequireCheckedClose]
[-Lax::ProhibitComplexMappings::LinesNotStatements]
[-Lax::ProhibitEmptyQuotes::ExceptAsFallback]
[-Lax::RequireConstantOnLeftSideOfEquality::ExceptEq]
[-Lax::ProhibitStringyEval::ExceptForRequire]
[-Miscellanea::ProhibitFormats]
[-Miscellanea::ProhibitTies]
[-Miscellanea::RequireRcsKeywords]
[-Modules::ProhibitAutomaticExportation]
[-Modules::ProhibitExcessMainComplexity]
[-Modules::ProhibitModuleShebang]
[-Modules::RequireExplicitInclusion]
[-Modules::RequirePerlVersion]
[-NamingConventions::Capitalization]
[-NamingConventions::ProhibitMixedCaseSubs]
[-NamingConventions::ProhibitMixedCaseVars]
[-References::ProhibitDoubleSigils]
[-RegularExpressions::ProhibitComplexRegexes]
[-RegularExpressions::ProhibitEnumeratedClasses]
[-RegularExpressions::ProhibitEscapedMetacharacters]
[-RegularExpressions::ProhibitFixedStringMatches]
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireExtendedFormatting]
[-RegularExpressions::RequireLineBoundaryMatching]
[-Subroutines::ProhibitCallsToUndeclaredSubs]
[-Subroutines::ProhibitCallsToUnexportedSubs]
[-Subroutines::ProhibitExcessComplexity]
[-Subroutines::RequireArgUnpacking]
[-Subroutines::RequireFinalReturn]
[-TestingAndDebugging::ProhibitNoWarnings]
[-TooMuchCode::ProhibitDuplicateLiteral]
[-ValuesAndExpressions::ProhibitAccessOfPrivateData]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitEscapedCharacters]
[-ValuesAndExpressions::ProhibitFiletest_f]
[-ValuesAndExpressions::ProhibitImplicitNewlines]
[-ValuesAndExpressions::ProhibitInterpolationOfLiterals]
[-ValuesAndExpressions::ProhibitLeadingZeros]
[-ValuesAndExpressions::ProhibitMagicNumbers]
[-ValuesAndExpressions::ProhibitMixedBooleanOperators]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::RequireConstantOnLeftSideOfEquality]
[-ValuesAndExpressions::RequireInterpolationOfMetachars]
[-Variables::ProhibitPunctuationVars]
[-Variables::RequireInitializationForLocalVars]