Subject: | Subroutines::RequireArgUnpacking allow_delegation_to does not handle @_ plus additional args |
Date: | Fri, 24 Aug 2012 13:14:20 -0400 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | Jess M Lilly <jmlilly [...] us.ibm.com> |
Hi,
I have my perl critic config file set up with this:
[Subroutines::RequireArgUnpacking]
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.