forked from beyondgrep/ack2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
perlcriticrc
71 lines (54 loc) · 2.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
verbose = %f:%l:%c %m (%p)\n
[-CodeLayout::ProhibitParensWithBuiltins]
[CodeLayout::ProhibitHardTabs]
allow_leading_tabs = 0
[-CodeLayout::RequireTidyCode]
# Never works for me.
[-CodeLayout::RequireTrailingCommaAtNewline]
# I like this one but it gives too many false positives.
[Compatibility::PodMinimumVersion]
above_version = 5.008008
[-ControlStructures::ProhibitPostfixControls]
[-Documentation::PodSpelling]
[-Documentation::RequireEndBeforeLastPod]
# We could have __END__ at the end of ack if not for the squashing.
[-Documentation::RequireLinkedURLs]
[-Documentation::RequirePodAtEnd]
[-Documentation::RequirePodLinksIncludeText]
# I'm not worried about link text.
[-Documentation::RequirePodSections]
[-Editor::RequireEmacsFileVariables]
# We're a utility. We're OK with die.
[-ErrorHandling::RequireCarping]
[-ErrorHandling::RequireUseOfExceptions]
[-InputOutput::ProhibitInteractiveTest]
[-InputOutput::ProhibitBacktickOperators]
[-InputOutput::RequireCheckedClose]
[InputOutput::RequireCheckedSyscalls]
functions = open opendir read readline readdir
[-Miscellanea::RequireRcsKeywords]
[-Modules::RequirePerlVersion]
[-Modules::RequireVersionVar]
[-NamingConventions::ProhibitAmbiguousNames]
[-RegularExpressions::ProhibitEscapedMetacharacters]
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireExtendedFormatting]
[-RegularExpressions::RequireLineBoundaryMatching]
[-Subroutines::ProhibitBuiltinHomonyms]
# We have plenty of funcs that we know are homonyms in ack, like open and close, but that's OK
[-Subroutines::ProhibitCallsToUndeclaredSubs]
[-Subroutines::ProhibitCallsToUnexportedSubs]
[-Subroutines::ProhibitExplicitReturnUndef]
[-Subroutines::RequireArgUnpacking]
[-TestingAndDebugging::ProhibitNoStrict]
[-TestingAndDebugging::ProhibitNoWarnings]
# If I've turned off warnings or strict, I know why I'm doing it.
[-TestingAndDebugging::RequireTestLabels]
[-ValuesAndExpressions::ProhibitConstantPragma]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitMagicNumbers]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::RequireConstantOnLeftSideOfEquality]
[-ValuesAndExpressions::RestrictLongStrings]
[-Variables::ProhibitPackageVars]
[-Variables::ProhibitPunctuationVars]