Subject: | use vars qw(@EXPORT_OK ) not recognized |
The test for "use vars qw(@EXPORT)" in sub _vars_EXPORT() in
lib/Perl/Critic/Policy/Modules/ProhibitAutomaticExportation.pm is
broken; it checks against the regexp "m{ \@EXPORT }mx", but that matches
@EXPORT_OK, which is valid. The attached patch matches against "m{
\@EXPORT\b }mx" and adds another test case to t/20_policies_modules.t
Subject: | perl-critic-patch |
Message body not shown because it is not plain text.