Subject: | countperl <lib> -- doesn't work; no documents found |
Date: | Mon, 05 Aug 2019 12:28:41 -0700 |
To: | bug-Perl-Metrics-Simple [...] rt.cpan.org |
From: | L A Walsh <cpan [...] tlinx.org> |
have a directory 'lib' with a bunch of perl library files.
Wanted to get stats:
Ishtar:law/bin> countperl lib
Did not supply a document! at
/home/perl/perl-5.16.3/lib/site/Perl/Metrics/Simple/Analysis/File.pm
line 380.
Perl::Metrics::Simple::Analysis::File::_prune_non_code_lines(undef)
called at
/home/perl/perl-5.16.3/lib/site/Perl/Metrics/Simple/Analysis/File.pm
line 167
Perl::Metrics::Simple::Analysis::File::_make_pruned_document(Perl::Metrics::Simple::Analysis::File=HASH(0x1658180),
undef) called at
/home/perl/perl-5.16.3/lib/site/Perl/Metrics/Simple/Analysis/File.pm
line 124
Perl::Metrics::Simple::Analysis::File::_init(Perl::Metrics::Simple::Analysis::File=HASH(0x1658180),
"path", "lib/Data/Vars-1.18.pm") called at
/home/perl/perl-5.16.3/lib/site/Perl/Metrics/Simple/Analysis/File.pm line 88
Perl::Metrics::Simple::Analysis::File::new("Perl::Metrics::Simple::Analysis::File",
"path", "lib/Data/Vars-1.18.pm") called at
/home/perl/perl-5.16.3/lib/site/Perl/Metrics/Simple.pm line 37
Perl::Metrics::Simple::analyze_files(Perl::Metrics::Simple=HASH(0x607d08),
"lib") called at /usr/bin/countperl line 27
----
Says perldocs are 'pl|pm|t' files. I think it missed a few under lib:
Show quoted text
> tree lib |grep -P '\.(pl|pm|t)$'|wc -l
494
pl files:44
pm files: 336
t files: 114