aboutsummaryrefslogblamecommitdiff
path: root/perlcritic/perlcriticrc
blob: c3fda08053db97807bd11d22d6ffefdfebabe39b (plain) (tree)
1
2
3
4
5
6
7
8
9
           
                 




                                                                             
 
                                                               
                              
                                      




                                                                               
# 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