File: 42_perlcriticrc-tests

package info (click to toggle)
libperl-critic-perl 1.156-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,544 kB
  • sloc: perl: 24,092; lisp: 341; makefile: 7
file content (55 lines) | stat: -rw-r--r-- 1,460 bytes parent folder | download | duplicates (6)
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
profile-strictness = fatal
severity = 1
theme = core
verbose = %f: %m at line %l, column %c.  %e.  (Severity: %s, %p)\n

#-----------------------------------------------------------------------------

[BuiltinFunctions::ProhibitStringyEval]
allow_includes = 1

[CodeLayout::ProhibitQuotedWordLists]
strict = 1

[CodeLayout::ProhibitHardTabs]
allow_leading_tabs = 0

[-CodeLayout::RequireTidyCode]

[ControlStructures::ProhibitPostfixControls]
flowcontrol = warn die carp croak cluck confess goto exit plan skip

# None of our tests contain real POD, but POD::Spell gets confused by the code
# in some of our test files.
[-Documentation::PodSpelling]

[-Documentation::RequirePodSections]

# Too endemic for me to deal with right now
[-ErrorHandling::RequireCheckingReturnValueOfEval]

# Wrapping Exception constructor calls across lines runs into 9 lines too quickly.
[InputOutput::RequireBriefOpen]
lines = 20

[InputOutput::RequireCheckedSyscalls]
functions = open close

# Character length is not a proper measure of complexity.
[-RegularExpressions::ProhibitComplexRegexes]

[RegularExpressions::ProhibitUnusualDelimiters]
allow_all_brackets = 1

[RegularExpressions::RequireBracesForMultiline]
allow_all_brackets = 1

# Tests are allowed to peek.
[-Subroutines::ProtectPrivateSubs]

# Tests can be evil.
[TestingAndDebugging::ProhibitNoWarnings]
allow = redefine

# Too endemic for me to deal with right now.
[-ValuesAndExpressions::ProhibitMagicNumbers]