« 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__ | ||