On Fri May 10 01:19:46 2013, ETHER wrote:
Show quoted text> On Thu, May 09, 2013 at 01:41:47AM -0400, Kenichi Ishigaki via RT
> wrote:
> for toolchains (or anywhere)? This seems to me something for
> Perl::Critic.
>
> Yes, this came up yesterday regarding Daemon::Control being packaged
> up
> into an rpm -- the wrong perl was being invoked.
Thanks, got the point. Though looking for shebangs in all the test files might be somewhat overkill (at least the target should be .pl files in t/ directory for now), we'll eventually need to consider about post-installation tests (see Lancaster consensus), and this "shebangs in test files" information would give us a nice topic for later discussion.
I think it's too early to make this a solid Kwalitee metric (cf. #84921), but I'd like to add a code to analyse test files to provide some statistics on the website.
Show quoted text> But you bring up a point which I don't think (to my knowledge at
> least) has
> been clearly articulated anywhere -- what things are appropriate as
> kwalitee metrics, and what things are better suited as perlcritic
> metrics?
> It would be good to have a clear (written) policy, to help guide
> future
> metric authors.
Check first:
http://qa.perl.org/phalanx/kwalitee.html
For me,
(1) metrics not to break toolchains, or to alleviate a burdon on toolchain maintainers (eg. extraction, meta validation) -> Kwalitee
(2) metrics for security or for portability (eg. symlinks) -> Kwalitee
(3) metrics every CPAN author should test by themselves but often forget/ignore (eg. pod) -> Kwalitee
(4) metrics generally useful but controversial on occasion (eg. coding style, module selection, other best practices irrelevant to toolchains) -> Critic (which is customizable)
(5) bugs specific to a dist/an author/a group -> bug trackers
(6) metrics to gather information from the whole CPAN/BackPAN -> depends, but probably CPANTS can help as it actually extracts every distribution
(7) others (eg. popularity/repackageability) -> depends, but maybe they should be done somewhere else for their specific audience.
Is there any other aspect that should be covered?