Subject: | Perl::Critic::Policy::Modules::RequireExplicitInclusion false positive with use_ok() |
echo 'use Test::More; use_ok("My::Module"); My::Module::func;' |
perlcritic --single Modules::RequireExplicitInclusion
Use of "My::Module::func" without including "My::Module" at line 1,
column 39. Without importing a package, it is unlikely that references
to things inside it even exist. (Severity: 4)
echo 'use Test::More; use_ok("My::Module", qw( foo bar ));
My::Module::func;' | perlcritic --single Modules::RequireExplicitInclusion
Use of "My::Module::func" without including "My::Module" at line 1,
column 54. Without importing a package, it is unlikely that references
to things inside it even exist. (Severity: 4)