line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
626
|
use strict; use warnings; |
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
55
|
|
2
|
|
|
|
|
|
|
package Module::Install::AckXXX; |
3
|
|
|
|
|
|
|
our $VERSION = '0.27'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use base 'Module::Install::Base'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
838
|
|
6
|
|
|
|
|
|
|
our $AUTHOR_ONLY = 1; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub ack_xxx { |
9
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
10
|
0
|
0
|
|
|
|
|
return unless $self->is_admin; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
require Capture::Tiny; |
13
|
0
|
|
|
0
|
0
|
|
sub ack { system "find lib t Makefile.PL -type f | ack -x '^\\s*use XXX\\b(?!\\s*\\d)'"; } |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $output = Capture::Tiny::capture_merged(\&ack); |
16
|
0
|
0
|
|
|
|
|
$self->_report($output) if $output; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub _report { |
20
|
0
|
|
|
0
|
|
|
my $self = shift; |
21
|
0
|
|
|
|
|
|
my $output = shift; |
22
|
0
|
|
|
|
|
|
chomp ($output); |
23
|
0
|
|
|
|
|
|
print <<"..."; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
*** AUTHOR WARNING *** |
26
|
|
|
|
|
|
|
*** Found usage of XXX.pm in this code: |
27
|
|
|
|
|
|
|
$output |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
... |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |