line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::DBCritic::PolicyType; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
2941
|
use strict; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
155
|
|
4
|
5
|
|
|
5
|
|
34
|
use utf8; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
26
|
|
5
|
5
|
|
|
5
|
|
124
|
use Modern::Perl '2011'; ## no critic (Modules::ProhibitUseQuotedVersion) |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
27
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.022'; # VERSION |
8
|
|
|
|
|
|
|
require Devel::Symdump; |
9
|
5
|
|
|
5
|
|
4302
|
use List::MoreUtils; |
|
5
|
|
|
|
|
66000
|
|
|
5
|
|
|
|
|
34
|
|
10
|
5
|
|
|
5
|
|
4935
|
use Moo::Role; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
41
|
|
11
|
5
|
|
|
5
|
|
2037
|
use Sub::Quote; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
496
|
|
12
|
5
|
|
|
5
|
|
44
|
use namespace::autoclean -also => qr{\A _}xms; |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
49
|
|
13
|
|
|
|
|
|
|
with 'App::DBCritic::Policy'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has applies_to => ( |
16
|
|
|
|
|
|
|
is => 'ro', |
17
|
|
|
|
|
|
|
lazy => 1, |
18
|
|
|
|
|
|
|
## no critic (ValuesAndExpressions::RequireInterpolationOfMetachars) |
19
|
|
|
|
|
|
|
default => quote_sub( <<'END_SUB' => { '$package' => \__PACKAGE__ } ), |
20
|
|
|
|
|
|
|
[ List::MoreUtils::apply {s/\A .+ :://xms} |
21
|
|
|
|
|
|
|
grep { shift->does($_) } Devel::Symdump->packages($package), |
22
|
|
|
|
|
|
|
]; |
23
|
|
|
|
|
|
|
END_SUB |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# ABSTRACT: Role for types of database criticism policies |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |