Am Mi 25. Sep 2013, 01:56:14, ISHIGAKI schrieb:
Show quoted text> On Wed Sep 25 03:50:08 2013, ABRAXXA wrote:
> > Am Di 24. Sep 2013, 14:38:58, ETHER schrieb:
> > > On 2013-09-24 10:22:36, ABRAXXA wrote:
> > > > I'm using Dist::Zilla::Plugin::Test::Kwalitee through
> > > > Dist::Zilla::PluginBundle::TestingMania in conjunction with
> > > > Dist::Zilla::Plugin::PodWeaver.
> > > > Its Pod::Weaver::Section::Legal, which is part of the default
> > > > profile
> > > > (Pod::Weaver::PluginBundle::Default), generates a =head1 pod
> > > > section
> > > > called 'COPYRIGHT and LICENSE' which includes the license.
> > > > test number 13 has_license_in_source_file doens't pick that up
> > > > and
> > > > fails.
> > >
> > >
> > > I've seen this before; I believe it is not the header itself that
> > > is
> > > not being recognized, but the particular license you are using --
> > > what
> > > license is that?
> > >
> > > But anyway, Test::Kwalitee is just a thin shell around
> > > Module::CPANTS::Analyse, which is where all the checking logic
> > > lives,
> > > so this ticket belongs there.
> >
> >
> > Thanks for reassigning the ticket!
> > The license used is 'None' as it's a company internal dist.
>
> Hi. It looks like there are several issues here.
>
> 1) As you know, CPANTS is a testing service for CPAN distributions.
> Though CPAN doesn't impose any limitation on the licenses of
> distributions, I think it's reasonably acceptable to encourage people
> to use one of the well-known open source licenses Software::License
> supports (at least for CPAN distributions, to be clear, to reuse them
> without fear).
'None' is Software::License::None which was added exactly to support private dists.
Show quoted text>
> So I'm inclined to consider this is not a bug but a feature because of
> your internal distributions' proprietary license.
>
> You can exclude license metrics by adding parameters when you use
> Test::Kwalitee (at least by hand, but I'm not sure if Dist::Zilla
> plugins support the feature).
>
> 2) That said, it may be a problem if Software::LicenseUtils can't
> guess a license it supports. If you think so, could you open another
> ticket for Software::License to ask RJBS to improve
> Software::LicenseUtils so that its "guess_license_from_pod" method
> (this is the one used in MCK) guesses "None" license correctly?
Will talk to him on IRC or reassign this one to Software::License.
Show quoted text>
> 3) Also, it might be nice to split the metric so that we can
> separately test if a dist has a license section (no matter what the
> actual license is) and if the license is open-source friendly or not.
> But anyway, you'll probably need to exclude the latter.
I thought that's what the test does, at least the method name made me think that.