blob: 14b2d7cab470655efb07bbb8399b9b46ab643062 (
plain)
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
|
theme = freenode || core || certrec || certrule || performance || security
severity = 1
[-CodeLayout::RequireTidyCode]
#perltidyrc = .perltidyrc
[InputOutput::RequireCheckedSyscalls]
functions = :builtins
exclude_functions = print say binmode
[-BuiltinFunctions::ProhibitUselessTopic]
[-ControlStructures::ProhibitCascadingIfElse]
[-ControlStructures::ProhibitPostfixControls]
[-ControlStructures::ProhibitUnlessBlocks]
[-Documentation::RequirePodLinksIncludeText]
[-Documentation::RequirePodSections]
[-ErrorHandling::RequireCarping]
[-Modules::RequireVersionVar]
[-References::ProhibitDoubleSigils]
[-RegularExpressions::ProhibitComplexRegexes]
[-RegularExpressions::RequireExtendedFormatting]
[-Subroutines::ProhibitExcessComplexity]
[-ValuesAndExpressions::ProhibitConstantPragma]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitMagicNumbers]
[-ValuesAndExpressions::ProhibitVersionStrings]
[-Variables::ProhibitLocalVars]
[-Variables::ProhibitPackageVars]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
# this policy is broken currently
[-Freenode::PackageMatchesFilename]
# This is not a good policy.
# Non-explicit return is often easier to read.
# think of javascript arrow functions.
[-Subroutines::RequireFinalReturn]
# This test is technically correct but I do not care.
[-InputOutput::ProhibitInteractiveTest]
# I believe in the opposite of this test.
[-InputOutput::ProhibitExplicitStdin]
# _build_* are allowed
[Subroutines::ProhibitUnusedPrivateSubroutines]
private_name_regex = _(?!_|build_)\w+
# I don't agree with this policy because
# a bare return can actually cause more problems.
[-Subroutines::ProhibitExplicitReturnUndef]
[Variables::RequireLocalizedPunctuationVars]
allow = @ARGV $ARGV %ENV %SIG
[Variables::ProhibitPunctuationVars]
allow = $@ $! $/ $^O $^V
|