This repository has been archived by the owner on Apr 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
perlcriticrc
59 lines (44 loc) · 1.79 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
verbose = %f:%l:%c %m (%p)\n %r\n\n
[-CodeLayout::ProhibitParensWithBuiltins]
[CodeLayout::ProhibitHardTabs]
allow_leading_tabs = 0
[-CodeLayout::RequireTidyCode]
# Never works for me.
[-Compatibility::PodMinimumVersion]
[-ControlStructures::ProhibitPostfixControls]
[-Documentation::RequirePodAtEnd]
[-Documentation::RequirePodLinksIncludeText]
[-Documentation::RequirePodSections]
[-Editor::RequireEmacsFileVariables]
[-ErrorHandling::RequireCarping]
[-ErrorHandling::RequireUseOfExceptions]
[-InputOutput::ProhibitInteractiveTest]
[-InputOutput::ProhibitBacktickOperators]
[-InputOutput::RequireCheckedSyscalls]
functions = open opendir read readline readdir close closedir
[Modules::ProhibitEvilModules]
modules = autodie
[-Modules::ProhibitAutomaticExportation]
[-Modules::ProhibitExcessMainComplexity]
[-Modules::RequirePerlVersion]
[-Modules::RequireVersionVar]
[-NamingConventions::Capitalization]
# The HTML::Entities conventions are outside of my control.
[-RegularExpressions::ProhibitComplexRegexes]
[-RegularExpressions::ProhibitEscapedMetacharacters]
# We have a ton of long regexes in our tests.
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireExtendedFormatting]
[-RegularExpressions::RequireLineBoundaryMatching]
[-Subroutines::ProhibitCallsToUndeclaredSubs]
[-Subroutines::ProhibitExplicitReturnUndef]
[-Subroutines::RequireArgUnpacking]
[-TestingAndDebugging::RequireTestLabels]
# I'm shocked to put this in here, but in this test suite I don't care.
[-ValuesAndExpressions::ProhibitConstantPragma]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitMagicNumbers]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::RequireConstantOnLeftSideOfEquality]
[-Variables::ProhibitPackageVars]
[-Variables::ProhibitPunctuationVars]