forked from bestpractical/rt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.perlcriticrc
26 lines (21 loc) · 837 Bytes
/
.perlcriticrc
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
# This perlcritic policy file isn't to be taken as gospel. It's just a start
# As of now, it's mostly about disabling policies we're not able to follow or
# strongly disagree with
exclude = Subroutines::ProhibitExplicitReturnUndef Modules::RequireFilenameMatchesPackage TestingAndDebugging::ProhibitNoStrict
color = 1
verbose = 7
# we don't unpack @_ right away as we mostly use named vars with defaults:
# sub foo {
# my $self = shift;
# my %args = ( default => 'value', ..., @_ );
# ...
[-Subroutines::RequireArgUnpacking]
# Readonly superiority is not convincing, especially considering
# that 'use constant' participates in constants folding during
# compilation
[-ValuesAndExpressions::ProhibitConstantPragma]
# brutal
[BuiltinFunctions::RequireBlockGrep]
severity = 1
[BuiltinFunctions::RequireBlockMap]
severity = 1