| 1 | package App::MadEye::Plugin::Base; | ||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use base qw/Class::Component::Plugin/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use App::MadEye::Util qw/get_schema_from_pod/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use Kwalify (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||
| 9 | 2 | my $class = shift; | |||||||||
| 10 | 2 | my $self = $class->SUPER::new(@_); | |||||||||
| 11 | |||||||||||
| 12 | 2 | ▶ | if (my $schema = get_schema_from_pod($self)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 0 | ▶ | local $SIG{__DIE__} = sub { die "$self: @_" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 14 | 2 | Kwalify::validate($schema, $self->config->{config}); | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 2 | $self; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 2 | 1; | |||||||||
| 21 | |||||||||||