Subject: | Metaprogramming confuses prereq_matches_use |
I just noticed that http://cpants.perl.org/dist/kwalitee/WebService-NFSN
shows it failing prereq_matches_use. The error says "Undefined prereqs:
WebService::NFSN::"
I'm assuming that comes from this snippet:
eval <<"END CHILD CONSTRUCTOR"; ## no critic ProhibitStringyEval
sub $sub
{
require WebService::NFSN::$class;
WebService::NFSN::$class->new(\@_);
}
END CHILD CONSTRUCTOR
This is used in a loop to autogenerate methods for creating objects.
Since WebService::NFSN:: is not a valid module name, I think CPANTS
ought to assume it didn't understand the code and just ignore it.