File Coverage

blib/lib/Perl/Critic/Policy/Freenode/StrictWarnings.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 15 86.6


line stmt bran cond sub pod time code
1             package Perl::Critic::Policy::Freenode::StrictWarnings;
2              
3 1     1   1058 use strict;
  1         3  
  1         42  
4 1     1   7 use warnings;
  1         3  
  1         41  
5              
6 1     1   6 use parent 'Perl::Critic::Policy::Community::StrictWarnings';
  1         4  
  1         8  
7              
8             our $VERSION = 'v1.0.1';
9              
10 0     0 1   sub default_themes { 'freenode' }
11              
12             1;
13              
14             =head1 NAME
15              
16             Perl::Critic::Policy::Freenode::StrictWarnings - Always use strict and
17             warnings, or a module that imports these
18              
19             =head1 DESCRIPTION
20              
21             Legacy C<freenode> theme policy alias.
22              
23             =head1 POLICY MOVED
24              
25             This policy has been moved to the C<community> theme and renamed to
26             L<Perl::Critic::Policy::Community::StrictWarnings>.
27              
28             =head1 AFFILIATION
29              
30             This policy is part of L<Perl::Critic::Freenode>.
31              
32             =head1 CONFIGURATION
33              
34             This policy can be configured to recognize additional modules as importers of
35             L<strict> and L<warnings>, by putting an entry in a C<.perlcriticrc> file like
36             this:
37              
38             [Freenode::StrictWarnings]
39             extra_importers = MyApp::Class MyApp::Role
40              
41             =head1 AUTHOR
42              
43             Dan Book, C<dbook@cpan.org>
44              
45             =head1 COPYRIGHT AND LICENSE
46              
47             Copyright 2015, Dan Book.
48              
49             This library is free software; you may redistribute it and/or modify it under
50             the terms of the Artistic License version 2.0.
51              
52             =head1 SEE ALSO
53              
54             L<Perl::Critic>, L<Perl::Critic::Community>