Subject: | new metric: MYMETA.{yml,json} bundled |
MYMETA.{yml,json} are generated at install time. They must NOT be bundled in CPAN distributions. Check this for details: http://weblog.bulknews.net/post/44251476706/stop-shipping-mymeta-to-cpan
Too many authors make that mistake: http://grep.cpan.me/?q=file%3AMYMETA.json+requires
Note that just checking if MYMETA.yml/MYMETA.json is present in the distribution directory may not be a good idea: the distribution author may use Module::CPANTS::Analyse from his working directory through the use of Test::Kwalitee. The best would be to be able to distinguish that case.
So a metric should check if MYMETA.yml/MYMETA.json is in the distribution:
- it should ensure that they are not registered in MANIFEST (if MANIFEST exists)
- if MANIFEST.SKIP is bundled it should check that it skips MYMETA.yml and MYMETA.json (see ExtUtils::Manifest::maniskip())
- if we are in a clean directory check that neither MYMETA.yml or MYMETA.json exists
--
Olivier Mengué - http://perlresume.org/DOLMEN