Skip to content

Commit

Permalink
update perl critic policies
Browse files Browse the repository at this point in the history
  • Loading branch information
ruz authored and alexmv committed Jul 7, 2014
1 parent cb8d2f2 commit efdabcd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .perlcriticrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,23 @@
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

0 comments on commit efdabcd

Please sign in to comment.