« lib/Perl/Critic/Policy/ValuesAndExpressions/ProhibitEscapedCharacters.pm
↑ Summary
lib/Perl/Critic/Policy/ControlStructures/ProhibitUnlessBlocks.pm »
| 1 | package Perl::Critic::Exception::Configuration::NonExistentPolicy; | ||
| 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 | ▶ | use Readonly; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 40 | our $VERSION = '1.156'; | |
| 10 | |||
| 11 | #----------------------------------------------------------------------------- | ||
| 12 | |||
| 13 | 40 | ▶ | use Exception::Class ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 40 | 'Perl::Critic::Exception::Configuration::NonExistentPolicy' => { | |
| 15 | isa => 'Perl::Critic::Exception::Configuration', | ||
| 16 | description => 'The configuration referred to a non-existent policy.', | ||
| 17 | fields => [ qw{ policy } ], | ||
| 18 | }, | ||
| 19 | 40 | ); | |
| 20 | |||
| 21 | #----------------------------------------------------------------------------- | ||
| 22 | |||
| 23 | 40 | Readonly::Array our @EXPORT_OK => qw< throw_extra_parameter >; | |
| 24 | |||
| 25 | #----------------------------------------------------------------------------- | ||
| 26 | |||
| 27 | 0 | ▶ | sub full_message { |
|
Subroutine
full_message: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | 0 | my ( $self ) = @_; | |
| 29 | |||
| 30 | 0 | my $policy = $self->policy(); | |
| 31 | |||
| 32 | 0 | return qq<There is no $policy policy installed.>; | |
| 33 | } | ||
| 34 | |||
| 35 | |||
| 36 | 40 | 1; | |
| 37 | |||
| 38 | __END__ | ||