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

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

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



Subject: Subroutines::ProhibitCallsToUndeclaredSubs - please consider Sub::Exporter style { -as => alias } syntax

Sub::Exporter based exporters support this syntax:

 

use Foo  exported_symbol => { 
    ...
    -as => "alias"

};
 

It would be nice if this policy detected such declarations appropriately, instead of erroneosuly thinking the symbol imported was "exported_symbol", while ignoring the validity of "alias"

 

Example: https://metacpan.org/pod/String::Formatter#SYNOPSIS