Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic-StricterSubs CPAN distribution.

Report information
The Basics
Id: 43315
Status: new
Priority: 0/
Queue: Perl-Critic-StricterSubs

People
Owner: Nobody in particular
Requestors: perl [...] galumph.com
KENTNL [...] cpan.org
mjgardner [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Subroutines::ProhibitCallsToUndeclaredSubs with version numbers in import spec
Date: Sun, 15 Feb 2009 11:21:40 -0600
To: bug-Perl-Critic-StricterSubs [...] rt.cpan.org
From: Elliot Shank <perl [...] galumph.com>
The policy says that the symbol has not been explicitely declared in the import spec in the test below, even though it has been. use Test::Simple tests => 1; use Perl::Critic qw(); my $violation = Perl::Critic->new('-single-policy' => 'Subroutines::ProhibitCallsToUndeclaredSubs')->critique(\<<'PERL'); use HTTP::Status '5.817' => qw(HTTP_INTERNAL_SERVER_ERROR); say HTTP_INTERNAL_SERVER_ERROR; PERL ok !$violation, 'recognises imports declared after a minimum version number'; (Original bug against Perl-Critic https://rt.cpan.org/Ticket/Display.html?id=43310)
Stumbled on this bug today.

Patch attached that works for me:

Subject: patch
Download patch
application/octet-stream 475b

Message body not shown because it is not plain text.