Thomas Klausner wrote:
> Hi!
> 
> I had some time recently and added some first META.yml checking to
> CPANTS (with the help of Gabor Szabo):
> 
> metayml_is_parsable
> metayml_has_license
> metayml_conforms_spec
> 
> metayml_has_license now indictes whether there's a computer readable
> license in META.yml, while (the also new metric)
> has_humanreadable_license does some where basic guessing if there's a
> human-readable license (LICENSE file or pod-section).
> 
> metayml_conforms_spec currently very much busts the CPANTS game. I'm
> checking if the files comply to META.yml spec 1.2. Most don't, because
> they seem to use 1.0
> Should I switch to 1.0-checking?

Well, files that declare themselves as nothing:  ---
are a free for all...


Files that declare: --- #YAML:1.0   should pass the 1.0 spec
Files that declare: --- #YAML:1.1   should pass the 1.2 spec

If matchines versiones to their specs can't be done with the available
parsers, Id say go back to what you were going before...which I'll
assume was a simple "throws error on load or doesn't throw error on
load" check....

-=Chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to