line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
401
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
2
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Code::Statistics::App::Command::report; |
5
|
|
|
|
|
|
|
$Code::Statistics::App::Command::report::VERSION = '1.190680'; |
6
|
|
|
|
|
|
|
# ABSTRACT: the shell command handler for stat reporting |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
4
|
use Code::Statistics::App -command; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
1
|
0
|
sub abstract { return 'create reports on statistics and output them' } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub opt_spec { |
13
|
1
|
|
|
1
|
1
|
1221
|
my @opts = ( |
14
|
|
|
|
|
|
|
[ 'quiet' => 'prevents writing of report to screen' ], |
15
|
|
|
|
|
|
|
[ 'file_ignore=s' => 'list of regexes matching files that should be ignored in reporting ' ], |
16
|
|
|
|
|
|
|
); |
17
|
1
|
|
|
|
|
6
|
return @opts; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub execute { |
21
|
1
|
|
|
1
|
1
|
863
|
my ( $self, $opt, $arg ) = @_; |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
|
|
2
|
return $self->cstat( %{$opt} )->report; |
|
1
|
|
|
|
|
11
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=encoding UTF-8 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Code::Statistics::App::Command::report - the shell command handler for stat reporting |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 1.190680 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 AUTHOR |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Christian Walde <mithaldu@yahoo.de> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Christian Walde has dedicated the work to the Commons by waiving all of his |
50
|
|
|
|
|
|
|
or her rights to the work worldwide under copyright law and all related or |
51
|
|
|
|
|
|
|
neighboring legal rights he or she had in the work, to the extent allowable by |
52
|
|
|
|
|
|
|
law. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Works under CC0 do not require attribution. When citing the work, you should |
55
|
|
|
|
|
|
|
not imply endorsement by the author. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=cut |