/usr/bin/cpants_lint is in libapp-cpants-lint-perl 0.04-3.
This file is owned by root:root, with mode 0o755.
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | #!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
use strict;
use warnings;
use App::CPANTS::Lint;
use Getopt::Long qw/:config gnu_compat/;
use Pod::Usage;
GetOptions(\my %opts, qw(
help|? man verbose dump yaml json colour|color save|to_file dir=s
));
pod2usage(1) if $opts{help};
pod2usage(-exitstatus => 0, -verbose => 2) if $opts{man};
my $dist = shift @ARGV;
pod2usage(-exitstatus => 0, -verbose => 0) unless $dist;
my $app = App::CPANTS::Lint->new(%opts);
my $res = $app->lint($dist);
$app->output_report;
__END__
=encoding utf-8
=head1 NAME
cpants_lint - commandline frontend to Module::CPANTS::Analyse
=head1 SYNOPSIS
cpants_lint path/to/Foo-Dist-1.42.tgz
Options:
--help brief help message
--man full documentation
--verbose print more info during run
--colour, --color pretty output
--dump dump result using Data::Dumper
--yaml dump result as YAML
--json dump result as JSON
--save write report (or dump) to a file
--dir directory to save a report to
=head1 DESCRIPTION
C<cpants_lint> checks the B<Kwalitee> of a CPAN distribution. More exact, it checks how a given tarball will be rated on C<http://cpants.perl.org>, without needing to upload it first.
For more information on Kwalitee, and the whole of CPANTS, see C<http://cpants.perl.org> and / or C<Module::CPANTS::Analyse>.
=head1 OPTIONS
=head2 --help
Print a brief help message.
=head2 --man
Print manpage.
=head2 --verbose
Print some informative messages while analysing a distribution.
=head2 --colour, --color
Like C<< --verbose >>, but prettier. You need to install L<Term::ANSIColor> (and L<Win32::Console::ANSI> for Win32) to enable this option.
=head2 --dump
Dump the result using Data::Dumper (instead of displaying a report text).
=head2 --yaml
Dump the result as YAML.
=head2 --json
Dump the result as JSON.
=head3 --save
Output the result into a file instead of STDOUT.
The name of the file will be F<Foo-Dist.txt> (well, the extension depends on the dump format and can be C<.dmp>, C<.yml> or C<.json>)
=head3 --dir
Directory to dump a file to. Defaults to the current working directory.
=head1 AUTHOR
L<Thomas Klausner|https://metacpan.org/author/domm>
L<Kenichi Ishigaki|https://metacpan.org/author/ishigaki>
=head1 COPYRIGHT AND LICENSE
Copyright © 2003–2006, 2009 L<Thomas Klausner|https://metacpan.org/author/domm>
Copyright © 2014 L<Kenichi Ishigaki|https://metacpan.org/author/ishigaki>
You may use and distribute this module according to the same terms
that Perl is distributed under.
|