-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.perlcriticrc
60 lines (45 loc) · 1.88 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
# please alpha sort config items as you add them
severity = 1
only = 0
force = 0
top = 10
theme = bugs+certrec+certrule+complexity+core+maintenance+nits+pbp+performance+security+unicode
criticism-fatal = 1
color = 0
allow-unsafe = 0
[Documentation::PodSpelling]
spell_command = aspell --lang=en list
stop_words = EdenWorX HurryKane MERCHANTABILITY cac ffmpeg maxfps mkv splitaudio tempdir targetfps wav yt
[InputOutput::ProhibitBacktickOperators]
only_in_void_context = 1
[InputOutput::RequireCheckedSyscalls]
functions = :builtins
exclude_functions = print
[Modules::ProhibitExcessMainComplexity]
max_mccabe = 30
[RegularExpressions::RequireExtendedFormatting]
minimum_regex_length_to_complain_about = 16
[Variables::ProhibitPunctuationVars]
allow = $@ $! $? $$ $|
[Variables::RequireLocalizedPunctuationVars]
allow = %SIG $SIG $SIG{__WARN__} $SIG{__DIE__} $SIG{CHLD}
[ValuesAndExpressions::ProhibitInterpolationOfLiterals]
allow_if_string_contains_single_quote = 1
# This rule is not really useful unless you have nothing
# but multiline lists with one item per line, or if you
# have to deal with many re-orderings of your lists.
[-CodeLayout::RequireTrailingCommas]
# This one is really not your cup of tea.
# (Yes, I see the benefit of configuring this one properly,
# it has to wait until I have time to figure it out.)
[-NamingConventions::Capitalization]
# We work in pure ASCII, so this rule should be disabled as
# it may lead to many false positives according to its POD.
[-RegularExpressions::ProhibitEnumeratedClasses]
# Defaults to 5, but that is too few. Allow at least one more.
[Subroutines::ProhibitManyArgs]
max_arguments = 6
# This one brings too many false positives
[-ValuesAndExpressions::ProhibitAccessOfPrivateData]
# I am very sorry, but this policy is totally bonkers!
[-ValuesAndExpressions::ProhibitMagicNumbers]