Debian Codegraph @

xt/40_perlcriticrc-code

raw
1 profile-strictness = fatal
2 severity = 1
3 theme = core
4 verbose = %f: %m at line %l, column %c. %e. (Severity: %s, %p)\n
5
6 #-----------------------------------------------------------------------------
7
8 [BuiltinFunctions::ProhibitStringyEval]
9 allow_includes = 1
10
11 [CodeLayout::ProhibitHardTabs]
12 allow_leading_tabs = 0
13
14 [CodeLayout::ProhibitQuotedWordLists]
15 strict = 1
16
17 [-CodeLayout::RequireTidyCode]
18
19 [-ControlStructures::ProhibitCascadingIfElse]
20
21 [Documentation::PodSpelling]
22 spell_command = aspell list -l en_US
23 stop_words_file = xt/40_stop_words
24
25 [Documentation::RequirePodSections]
26 lib_sections = NAME|DESCRIPTION|AUTHOR|COPYRIGHT
27 script_sections = NAME|DESCRIPTION|AUTHOR|COPYRIGHT
28
29 # Wrapping Exception constructor calls across lines runs into 9 lines too quickly.
30 [InputOutput::RequireBriefOpen]
31 lines = 20
32
33 [InputOutput::RequireCheckedSyscalls]
34 functions = open close
35
36 [-Miscellanea::ProhibitUselessNoCritic]
37 # With Perl 5.32, isa() becomes a reserved word. This means we need to Subroutines::ProhibitBuiltinHomonyms for it.
38 # However, for all other Perls, that causes a Miscellanea::ProhibitUselessNoCritic to fire.
39
40 [Modules::ProhibitEvilModules]
41 # List::MoreUtils isn't evil. We just have standardized on List::SomeUtils for Perl::Critic itself.
42 modules = List::MoreUtils
43
44 [RegularExpressions::ProhibitUnusualDelimiters]
45 allow_all_brackets = 1
46
47 [RegularExpressions::RequireBracesForMultiline]
48 allow_all_brackets = 1
49
50 [Subroutines::ProhibitUnusedPrivateSubroutines]
51 private_name_regex = _(?!_)\w+
52 allow = _get_behavior_values _get_description_with_trailing_period
53
54 [Subroutines::ProtectPrivateSubs]
55 private_name_regex = _(?!_)\w+