Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.perlcriticrc - github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 14246309a114ed9e17541d14652fc692ad38d797 (plain)
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