aboutsummaryrefslogtreecommitdiff
path: root/perlcritic/perlcriticrc
blob: 3bc92cdd90d6141aa1e6d8186650005297e2c18b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# No mercy!
severity = brutal

# I flatly disagree with this policy; sometimes bitwise operators are in fact
# what I want, and I don't have the problem of using | instead of || as the
# policy documentation suggests
[-Bangs::ProhibitBitwiseOperators]

# Add some networking terms to the list of legal numbered names
[Bangs::ProhibitNumberedNames]
add_exceptions = inet4 inet6 ipv4 ipv6

# Soften this policy a bit; tolerate all the single-digit integers as literals,
# and also 100 (for calculating percentages)
[ValuesAndExpressions::ProhibitMagicNumbers]
allowed_values = 0..9 100

# These are all explicitly listed as deprecated in perlvar
[Variables::ProhibitEvilVariables]
variables = $# $* $[