Something like
[-Subroutines::ProhibitSubroutinePrototypes]
in your .perlcriticrc should do the trick.
You can also do it inline with something like
## no critic (Subroutines::ProhibitSubroutinePrototypes)
sub subname ( ... ) {
## use critic
On Wed, Mar 29, 2017 at 1:16 PM, SSC_perl <[email protected]> wrote:
> Does anyone know how to keep Perl Critic from complaining about subroutine
> signatures? I’m getting a massive amount of these types of warnings:
>
> Subroutine prototypes used at line...
>
> It also thinks that postfix dereferencing is a magic variable. Is this
> because PC hasn’t been updated for a couple years, or is there an add-on
> that takes care of these situations?
>
> Thanks,
> Frank
>