Group
Extension

Matches 3

Code-Statistics ( M/MI/MITHALDU/Code-Statistics-1.190680.tar.gz, MITHALDU, 2019; MetaCPAN )
Code-Statistics/lib/Code/Statistics.pm ( view source; MetaCPAN )
tistics on the current directory and sub-directories,
    # then store results in codestat.out as json
    codestat collect

    # compile a report from codestat.out and print to the terminal
    code
les living under Code::Statistics::Metric:: are collected for all targets.

All data is dumped as json to C<codestat.out>.

=head2 Reporting

Data from the local C<codestat.out> is read.

Data is grou
Code-Statistics ( M/MI/MITHALDU/Code-Statistics-1.190680.tar.gz, MITHALDU, 2019; MetaCPAN )
Code-Statistics/lib/Code/Statistics/Reporter.pm ( view source; MetaCPAN )
RO;
use Code::Statistics::MooseTypes;
use Code::Statistics::Metric;

use Carp 'confess';
use JSON 'from_json';
use File::Slurp 'read_file';
use List::Util qw( reduce max sum min );
use Data::Section -
h => ( isa => 'Int', default => 10 );


sub report {
    my ( $self ) = @_;

    my $stats = from_json read_file('codestat.out');

    $stats->{files} = $self->_strip_ignored_files( @{ $stats->{files}
Code-Statistics ( M/MI/MITHALDU/Code-Statistics-1.190680.tar.gz, MITHALDU, 2019; MetaCPAN )
Code-Statistics/lib/Code/Statistics/Collector.pm ( view source; MetaCPAN )
e::Statistics::Collector::VERSION = '1.190680';
# ABSTRACT: collects statistics and dumps them to json

use 5.006_003;

use Moose;
use MooseX::HasDefaults::RO;
use Code::Statistics::MooseTypes;
use Mo
c;
use Code::Statistics::Target;

use File::Find::Rule::Perl;
use Code::Statistics::File;
use JSON 'to_json';
use File::Slurp 'write_file';
use Term::ProgressBar::Simple;
use File::Find::Rule;

has no
;

    $_->analyze for @{ $self->files };

    my $json = $self->_measurements_as_json;
    $self->_dump_file_measurements( $json );

    return $json;
}

sub _find_files {
    my ( $self ) = @_;
    

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.