-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.perlcriticrc
48 lines (34 loc) · 1.12 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
severity = 1
verbose = %f:%l: [%p] %m\n
[-CodeLayout::RequireTidyCode]
# no, thanks
[-ErrorHandling::RequireCarping]
# die is good enough
[-InputOutput::ProhibitExplicitStdin]
# doesn't matter for our scripts
[InputOutput::RequireBriefOpen]
lines = 30
[-InputOutput::RequireCheckedClose]
[-InputOutput::RequireCheckedOpen]
# already covered by RequireCheckedSyscalls
[InputOutput::RequireCheckedSyscalls]
functions = :builtins
exclude_functions = print
[-Modules::RequireVersionVar]
# we have only scripts, which don't need versions
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireExtendedFormatting]
[-RegularExpressions::RequireLineBoundaryMatching]
# no, thanks
[-RegularExpressions::ProhibitEnumeratedClasses]
# no, thanks
[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-ValuesAndExpressions::ProhibitNoisyQuotes]
# no, thanks
[-ValuesAndExpressions::ProhibitMagicNumbers]
# no, thanks
[-ValuesAndExpressions::ProhibitVersionStrings]
# we don't care about Perl << 5.6, which doesn't support version strings
[-ValuesAndExpressions::RequireInterpolationOfMetachars]
# false positives only
# vim:ft=dosini