ePages 6.11.0 - DE_EPAGES/Core/Scripts/Perl/Critic/Policy/DE_EPAGES/Style/RequireArgUnpacking.pm

Package Perl::Critic::Policy::DE_EPAGES::Style::RequireArgUnpacking

This module checks for proper unpacking of subroutine arguments. This module acts as a custom policy for Perl::Critic. Perl::Critic uses Module::Pluggable to automatically discover all modules in the Perl::Critic::Policy namespace, which is exactly the cause we put this module beyond Perl::Critic::Policy. This policy checks, if parameters are unpacked in subroutines. ePages style should be used; that is, $self should be unpacked separately like this: sub function { my $self = shift; my ($par1, $par2, $par3) = @_; ... } §parameters short_subroutine_statements - minimum lines of subroutine size to apply this policy allow_subscripts - Should unpacking from array slices and elements be allowed?