-
Notifications
You must be signed in to change notification settings - Fork 1
/
.perlcriticrc
46 lines (37 loc) · 1.41 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
severity = brutal
[InputOutput::RequireBriefOpen]
lines = 40
# Not so easy to detect when a regular expression
# needs to be detailled, the size is surely not
# the adequate metric
[RegularExpressions::RequireExtendedFormatting]
minimum_regex_length_to_complain_about = 40
[ValuesAndExpressions::ProhibitMagicNumbers]
allowed_values = -1 0 1 2 8 256
# We allow $} to workaround false positive in regex
[Variables::ProhibitPunctuationVars]
allow = $}
[InputOutput::RequireCheckedSyscalls]
exclude_functions = print
# This script is supposed to be easily installed to bootstrap
# installations so we keep all packages definitions in the same
# file, so we ignore these critics
[-Modules::RequireVersionVar]
[-Modules::ProhibitMultiplePackages]
[-InputOutput::ProhibitExplicitStdin]
[-InputOutput::ProhibitInteractiveTest]
# I prefer to handle perl tidy on my own
[-CodeLayout::RequireTidyCode]
# We will probably enable these ones later
[-InputOutput::ProhibitBacktickOperators]
[-Documentation::RequirePodSections]
# This critics are debatable
[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-RegularExpressions::RequireLineBoundaryMatching]
[-RegularExpressions::RequireDotMatchAnything]
[-Subroutines::RequireFinalReturn]
[-ValuesAndExpressions::ProhibitConstantPragma]
[-CodeLayout::ProhibitParensWithBuiltins]
[-InputOutput::RequireBracedFileHandleWithPrint]
[-Documentation::PodSpelling]