Subject: | Possible Bug in Perl::Critic::Policy::Subroutines::RequireFinalReturn |
Date: | Thu, 6 Jun 2013 16:19:56 -0400 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | Zachary Fletcher <buys444 [...] gmail.com> |
Hi!
I found a bug in Perl::Critic::Policy::Subroutines::RequireFinalReturn in
revision 4126.
When I try to validate the following code "sub foo { if @a { return } }" I
get an error (that is perl ciritic crashes instead of telling me I'm doing
something stupid).
I'm not a perl expert and I'm using a version of perl critic called from a
complicated wrapper someone wrote years ago, so the problem could be there
as well.
I thought I would point it out in case it was a bug so that it could be
looked into.
Thanks