Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Fixing Kwalitee

by skx (Parson)
on Sep 02, 2014 at 20:17 UTC ( #1099308=perlquestion: print w/replies, xml ) Need Help??

skx has asked for the wisdom of the Perl Monks concerning the following question:

I maintain a couple of modules on CPAN, and having recently started exploring the facilities available there I've come across the "kwalitee" score.

Using the TinyDNS::Reader module as an example I see that the score listing shows an error:

META.yml does not conform to any recognised META.yml Spec.

My generated tarball, made with "perl Makefile.PL ; make dist" contains what looks to me like a valid META.yml file, so I'm a little confused as the the problem.

Can a kind soul help me understand my problem? (The module comes from a github repository, if that is useful.)


Replies are listed 'Best First'.
Re: Fixing Kwalitee
by Khen1950fx (Canon) on Sep 03, 2014 at 01:27 UTC
    I used Test::CPAN::Meta::YAML to check the validity of the YAML.
    #!/usr/bin/perl use strict; use warnings; use Test::More tests => 2; use Test::CPAN::Meta::YAML; meta_spec_ok('META.yml', 1.4, 'valid YAML');
    The problem is requires:. You would want to use 0 and not the tilde. Here's the corrected META.yml:
    --- #YAML:1.0 name: TinyDNS-Reader version: 0.5 abstract: Parser for TinyDNS records. author: - Steve Kemp <> license: perl_5 distribution_type: module configure_requires: ExtUtils::MakeMaker: 0 build_requires: ExtUtils::MakeMaker: 0 requires: Test::More: 0 Test::NoTabs: 0 Test::Pod: 0 resources: bugtracker: homepage: license: repository: no_index: directory: - t - inc generated_by: ExtUtils::MakeMaker version 6.57_05 meta-spec: url: version: 1.4
    The test results:
    1..2 ok 1 - META.yml contains valid YAML ok 2 - valid YAML
    The YAML is valid.

      Perfect, thank you very much.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1099308]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2021-03-01 15:22 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (11 votes). Check out past polls.