Subject: | Proposed new metric: distname in release filename doesn't match dist name in metadata |
Hi Ishigaki-san,
What do you think about a new metric which checks whether the distname in the file name matches the distname given in the dist's metadata?
Ie if the distname returned by CPAN::DistnameInfo($release_path)->dist ne metadata->{name}
Lots of tools use CPAN::DistnameInfo to get the dist name for a release, but in some situations the path might not be easily available. In some cases I've used the MetaCPAN API to get the dist's dist name, but in some cases they don't match. I'm slowly working through those, raising bugs, but it would be good to have a check for that!
Cheers,
Neil