lib/Perl/Critic/Exception/Configuration/Option.pm

filter: Statementstmt 76.1% 16 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 100% 3 / 3 totaltotal 75.0% 24 / 32 CC 1 SCAR 3.2
CC
1
Cov
76%
message
2.0
error
2.0
full_message
2.0
CRAP 1.4
« lib/Perl/Critic/Policy/Modules/RequireBarewordIncludes.pm ↑ Summary lib/Perl/Critic/Policy/ControlStructures/ProhibitCStyleForLoops.pm »
1 package Perl::Critic::Exception::Configuration::Option;
2  
3 40 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 40 our $VERSION = '1.156';
8  
9 #-----------------------------------------------------------------------------
10  
11 40 ▶use Perl::Critic::Exception::Fatal::Internal;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 40 ▶use Exception::Class ( # this must come after "use P::C::Exception::*"
Subroutine BEGIN: called CC=1 SCAR=0.0
14 40 'Perl::Critic::Exception::Configuration::Option' => {
15 isa => 'Perl::Critic::Exception::Configuration',
16 description => 'A problem with an option in the Perl::Critic configuration, whether from a file or a command line or some other source.',
17 fields => [ qw{ option_name option_value message_suffix } ],
18 },
19 40 );
20  
21 #-----------------------------------------------------------------------------
22  
23 0 ▶sub message {
Subroutine message: not called CC=1 SCAR=6.9
Pod documented
24 0 my $self = shift;
25  
26 0 return $self->full_message();
27 }
28  
29 #-----------------------------------------------------------------------------
30  
31 0 ▶sub error {
Subroutine error: not called CC=1 SCAR=6.9
Pod documented
32 0 my $self = shift;
33  
34 0 return $self->full_message();
35 }
36  
37 #-----------------------------------------------------------------------------
38  
39 ## no critic (Subroutines::RequireFinalReturn)
40 0 ▶sub full_message {
Subroutine full_message: not called CC=1 SCAR=6.9
Pod documented
41 0 Perl::Critic::Exception::Fatal::Internal->throw(
42 'Subclass failed to override abstract method.'
43 );
44 }
45 ## use critic
46  
47  
48 40 1;
49  
50 __END__
« lib/Perl/Critic/Policy/Modules/RequireBarewordIncludes.pm ↑ Summary lib/Perl/Critic/Policy/ControlStructures/ProhibitCStyleForLoops.pm »