File: perlcriticrc

package info (click to toggle)
libweasel-perl 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 216 kB
  • sloc: perl: 973; makefile: 2
file content (64 lines) | stat: -rw-r--r-- 1,789 bytes parent folder | download | duplicates (3)
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
61
62
63
64
# Fail if listed policy modules are not available
profile-strictness = fatal

# 1 is the most strict setting, which is the
# default when only == 1
severity = 1

verbose = %p in %f[%l:%c] = %m %r\n
pager = less

theme     =
exclude   = 'OTRS::'

[CodeLayout::ProhibitHardTabs]
allow_leading_tabs = 0

[-CodeLayout::RequireTidyCode]

[ControlStructures::ProhibitPostfixControls]
allow = for if unless

[-Documentation::PodSpelling]

[-Documentation::RequirePodAtEnd]
[-Documentation::RequirePodLinksIncludeText]

[Documentation::RequirePodSections]
lib_sections = NAME | VERSION | SYNOPSIS | DESCRIPTION | DEPENDENCIES | SUBROUTINES/METHODS | AUTHOR | BUGS AND LIMITATIONS | SOURCE | LICENSE AND COPYRIGHT

[Modules::ProhibitEvilModules]
modules = Carp::Always Data::Dumper Data::Printer

[-Modules::RequireVersionVar]

[-RegularExpressions::ProhibitEscapedMetacharacters]
[-RegularExpressions::RequireBracesForMultiline]
[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireLineBoundaryMatching]

# The following requires Critic 1.36. disable until released
#[Subroutines::ProhibitUnusedPrivateSubroutines]
#allow_name = _build_\w+
[-Subroutines::ProhibitUnusedPrivateSubroutines]

[Subroutines::RequireArgUnpacking]

[-ValuesAndExpressions::ProhibitEmptyQuotes]
[-Variables::ProhibitLocalVars]
[Variables::ProhibitPunctuationVars]
string_mode = thorough

#--------------------------------------------------------------
# I think these are really important, so always load them

[TestingAndDebugging::RequireUseStrict]
severity = 1

[TestingAndDebugging::RequireUseWarnings]
severity = 1

#--------------------------------------------------------------
# For all other Policies, I accept the default severity,
# so no additional configuration is required for them.