On 07/21/2008 10:57 PM, Bill Ward wrote:
> My module Number::Format has some red areas in its Kwalitee report
> http://cpants.perl.org/dist/kwalitee/Number-Format
> 
> When I release 1.60, I tried to fix a lot of the kwalitee issues with
> the previous version, 1.52.  However, it appears that some of my
> "fixes" didn't work.  For example, my META.yml file was barebones in
> 1.52, and I wanted to bring it up to modern standards.  I could not
> find any tool that would help me generate it, so I cobbled one
> together by hand using examples from other modules.  Yet I still see
> dings against the kwalitee there.

I let EU::MM generate my META.yml files for me.

I hit problems getting it to include the licence field, as some old
EU::MM installs choked on the LICENCE field (they were too old to
recognise it - we're talking quite old, but still in use so I'd still
rather my module build didn't die on them).

To get round that, I use the following in my Makefile.PL :


WriteMakefile(
<...snipped the normal params...>
    # include the LICENSE param, as long as EU::MM is new enough to
    # support it:
    ($ExtUtils::MakeMaker::VERSION >= 6.3002 ? (LICENSE => "perl") : (),
);



> Also, how do I test the kwalitee without releasing a new version and
> waiting for CPANTS to find it?  I wish the CPANTS site had
> instructions on how to install the Kwalitee code on my own box for
> pre-release testing.  I see a number of modules in CPAN that relate to
> kwalitee but am not sure which one(s) I need.

As Thomas already said, cpants_lint.pl from the Module::CPANTS::Analyse
distribution will do the job nicely for you.  Yes, it has some
dependencies, but I don't see that as a good reason to avoid installing
a new module.  Avoiding wheel re-invention is kind of the point of CPAN,
so it's hardly surprising to rely on several modules rather than
pointlessly re-implement them in your own distribution :)

Cheers

Dave P


Reply via email to