| Server IP : 104.21.94.62 / Your IP : 216.73.217.32 Web Server : Apache System : Linux semi1.us.cloudlogin.co 5.10.244-xeon-hst #1 SMP Sun Sep 14 17:09:20 UTC 2025 x86_64 User : xessglobal ( 271017) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /proc/thread-self/root/bin/ |
Upload File : |
#!/usr/bin/perl
# ABSTRACT: list details of all kwalitee metrics installed on the system
# PODNAME: kwalitee-metrics
use strict;
use warnings;
use Module::CPANTS::Analyse 0.91;
my $verbose = @ARGV && ($ARGV[0] eq '--verbose' || $ARGV[0] eq '-v');
my $analyzer = Module::CPANTS::Analyse->new({
distdir => '.',
dist => '.',
opts => { no_capture => 1 },
});
# TODO: MCA needs an API for doing this iteration.
for my $generator (@{ $analyzer->mck->generators })
{
print $generator, ' ', $generator->VERSION, "\n";
for my $indicator (sort { $a->{name} cmp $b->{name} } @{ $generator->kwalitee_indicators })
{
print " $indicator->{name}";
my @flags = grep { exists $indicator->{$_} }
qw(is_extra is_experimental needs_db);
print ' (', join(', ', @flags), ')' if @flags;
print "\n";
print " error: $indicator->{error}\n" if $verbose;
print " remedy: $indicator->{remedy}\n" if $verbose;
}
}
continue { print "\n"; }
__END__
=pod
=encoding UTF-8
=head1 NAME
kwalitee-metrics - list details of all kwalitee metrics installed on the system
=head1 VERSION
version 1.28
=head1 DESCRIPTION
Dumps all of the kwalitee metrics, along with their source class, currently
installed on the system.
=for stopwords programmatically
If C<--verbose> or C<-v> is passed as an argument, the 'error' and 'remedy'
strings for the metric are included, as a sort of documentation (the only kind
programmatically available).
=head1 SEE ALSO
=over 4
=item *
L<Test::Kwalitee>
=item *
L<Module::CPANTS::Analyse>
=back
=head1 SUPPORT
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Kwalitee>
(or L<[email protected]|mailto:[email protected]>).
There is also a mailing list available for users of this distribution, at
L<http://lists.perl.org/list/perl-qa.html>.
There is also an irc channel available for users of this distribution, at
L<C<#perl> on C<irc.perl.org>|irc://irc.perl.org/#perl-qa>.
=head1 AUTHORS
=over 4
=item *
chromatic <[email protected]>
=item *
Karen Etheridge <[email protected]>
=back
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2005 by chromatic.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut