Subject: | new kwalitee metric: inappropriate things in build requires |
As described in CPAN::Meta::Spec (v2), the 'build' phase of prerequisites should only contain things needed to run "./Build" or "make". Things needed to run tests belong in the 'test' phase. Since there are many many distributions still declaring things in the wrong category, I think it would be helpful to point this out in a kwalitee metric.
I propose triggering this metric whenever a module matching /^Test::/ is found in 'build' prerequisites in v2 metadata. (It should not trigger for distributions that only contain v1.x META.yml, as we would have to inspect Makefile.PL by hand to make the determination.)