File: .perlcriticrc

package info (click to toggle)
adequate 0.12~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 332 kB
  • sloc: perl: 1,114; python: 350; makefile: 139; sh: 89; ansic: 21
file content (62 lines) | stat: -rw-r--r-- 1,652 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
56
57
58
59
60
61
62
severity = 1
verbose = 1

[-InputOutput::ProhibitInteractiveTest]
# we don't want to depend on IO::Interactive, and -t is good enough for our purposes

[-InputOutput::ProhibitExplicitStdin]
# we never want to iterate over @ARGV implicitly
# see also https://github.com/Perl-Critic/Perl-Critic/issues/72

[InputOutput::RequireBriefOpen]
lines = 20

[-InputOutput::RequireCheckedOpen]
[-InputOutput::RequireCheckedClose]
# already covered by RequireCheckedSyscalls

[-RegularExpressions::RequireExtendedFormatting]
# no, thanks

[-RegularExpressions::RequireDotMatchAnything]
[-RegularExpressions::RequireLineBoundaryMatching]
# we work mostly with single-line strings
# reconsider when https://github.com/Perl-Critic/Perl-Critic/issues/551 is fixed

[-RegularExpressions::ProhibitEnumeratedClasses]
# we work mostly with ASCII

[-ErrorHandling::RequireCarping]
# die is good enough for our purposes

[-Variables::ProhibitPackageVars]
# no, thanks

[-ValuesAndExpressions::ProhibitVersionStrings]
# we don't care about Perl << 5.6, which doesn't support version strings

[-ValuesAndExpressions::ProhibitMagicNumbers]
# no, thanks

[-ValuesAndExpressions::ProhibitNoisyQuotes]
[-ValuesAndExpressions::ProhibitEmptyQuotes]
# no, thanks

[-CodeLayout::ProhibitParensWithBuiltins]
# no, thanks

[-CodeLayout::RequireTrailingCommas]
# no, thanks

[-BuiltinFunctions::ProhibitBooleanGrep]
# we don't want to depend on List::MoreUtils

[NamingConventions::Capitalization]
labels = :all_lower
file_lexical_variable_exemptions = ARGV_[[:lower:]]+
subroutine_exemptions = Tags

[ControlStructures::ProhibitPostfixControls]
flowcontrol = die error

# vim:ft=dosini