/usr/share/perl5/Module/CPANTS/Kwalitee/Distname.pm is in libmodule-cpants-analyse-perl 0.95-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | package Module::CPANTS::Kwalitee::Distname;
use warnings;
use strict;
our $VERSION = '0.95';
$VERSION = eval $VERSION; ## no critic
sub order { 20 }
##################################################################
# Analyse
##################################################################
sub analyse {
my $class=shift;
my $me=shift;
# NOTE: The analysis code has moved to ::Analyse to avoid
# duplication.
# Note also that this stub should not be removed so that
# this can replace the old ::Distname module, and the old
# metrics will not be loaded while loading plugins.
return;
}
##################################################################
# Kwalitee Indicators
##################################################################
sub kwalitee_indicators {
# NOTE: The metrics in this module have moved to
# Module::CPANTS::SiteKwalitee because these require an archived
# distribution which you don't have while testing local Kwalitee
# with Test::Kwalitee.
return [];
}
q{Favourite record of the moment:
Fat Freddys Drop: Based on a true story};
__END__
=encoding UTF-8
=head1 NAME
Module::CPANTS::Kwalitee::Distname - Proper Distname layout
=head1 SYNOPSIS
Checks if a distname is well-formed.
A well-formed distname looks like C<Foo-Bar-1.42.tgz>
=head1 DESCRIPTION
=head2 Methods
=head3 order
Defines the order in which Kwalitee tests should be run.
Returns C<20>, as data generated by C<MCK::Distname> is used by other tests.
=head3 analyse
C<MCK::Distname> uses C<CPAN::DistnameInfo> to split a distname into it's components.
=head3 kwalitee_indicators
Returns the Kwalitee Indicators datastructure.
=over
=back
=head1 SEE ALSO
L<Module::CPANTS::Analyse>
=head1 AUTHOR
L<Thomas Klausner|https://metacpan.org/author/domm>
=head1 COPYRIGHT AND LICENSE
Copyright © 2003–2006, 2009 L<Thomas Klausner|https://metacpan.org/author/domm>
You may use and distribute this module according to the same terms
that Perl is distributed under.
|