|Subject:||Subroutines::RequireArgUnpacking allow_delegation_to does not handle @_ plus additional args|
|Date:||Fri, 24 Aug 2012 13:14:20 -0400|
|From:||Jess M Lilly <firstname.lastname@example.org>|
I have my perl critic config file set up with this:
allow_delegation_to = dpStandards:: scalar
short_subroutine_statements = 5
The call to scalar works fine. In other words, scalar(@_) is allowed and there is no violation.
But, calls a call like this gets a violation when it should not:
dpStandards::validateArgs( @_, 1 );
If I remove the ,1 then the violation goes away.
dpStandards::validateArgs( @_ );
Please fix RequireArgUnpacking to acount for more than one parameter in the allow_delegation_to config.
Thanks you for working on Critic. It is an AWESOME tool.