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: 43310
Status: resolved
Priority: 0/
Queue: Perl-Critic-StricterSubs

People
Owner: Nobody in particular
Requestors: daxim [...] cpan.org
mjgardner [...] cpan.org
Cc:
AdminCc:

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



Subject: Subroutines::ProhibitCallsToUndeclaredSubs with version numbers in import spec
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';
On Sun Feb 15 09:02:51 2009, DAXIM wrote: Show quoted text
> 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';
Patch committed (very belatedly!) as SVN revision 3986.
This has finally been released as Perl-Critic-StricterSubs-0.04 https://metacpan.org/release/Perl-Critic-StricterSubs Thanks for your patience.