File Coverage

blib/lib/Perl/Critic/RENEEB.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Perl::Critic::RENEEB;
2              
3 1     1   70677 use warnings;
  1         2  
  1         34  
4 1     1   5 use strict;
  1         2  
  1         45  
5              
6             # ABSTRACT: A collection of handy Perl::Critic policies
7              
8             our $VERSION = '2.05';
9              
10              
11             1; # End of Perl::Critic::RENEEB
12              
13             __END__
14              
15             =pod
16              
17             =encoding UTF-8
18              
19             =head1 NAME
20              
21             Perl::Critic::RENEEB - A collection of handy Perl::Critic policies
22              
23             =head1 VERSION
24              
25             version 2.05
26              
27             =head1 SYNOPSIS
28              
29             Perl::Critic::RENEEB is a collection of Perl::Critic policies that
30             is used in my programming environment
31              
32             =head1 DESCRIPTION
33              
34             The rules included with the Perl::Critic::RENEEB group include:
35              
36             =head2 L<Perl::Critic::Policy::RegularExpressions::RequireExtendedFormattingExceptForSplit>
37              
38             I use split with regular expressions regularly, but I don't want to use the x-modifier there. So
39             I wrote this policy to check all regular expressions in my programs but those used as a parameter to split.
40              
41             =head2 L<Perl::Critic::Policy::Reneeb::ProhibitBlockEval>
42              
43             Use C<try{...}> from L<Try::Tiny|https://metacpan.org/pod/Try::Tiny> instead of C<eval{...}>.
44              
45             =head2 L<Perl::Critic::Policy::Reneeb::Capitalization>
46              
47             Checks for capitalization of package names, subroutines, etc. It's a subclass of
48             L<Perl::Critic::Policy::NamingConventions::Capitalization>, but it adds the parameter
49             C<full_qualified_package_exemptions> to exclude packages by "full qualified namespace".
50              
51             full_qualified_package_exemptions = Test::Command::.*
52              
53             excludes all packages in the C<Test::Command::> namespace from the check.
54              
55             =head2 L<Perl::Critic::Policy::Reneeb::ProhibitGrepToGetFirstFoundElement>
56              
57             Use List::Utils 'first' instead of grep if you want to get the first found element
58              
59             =head2 L<Perl::Critic::Policy::Reneeb::RequirePostderef>
60              
61             Use postderef (e.g. $ref->@*) instead of the "old" dereferencing (e.g. @{$ref})
62              
63             =head1 AUTHOR
64              
65             Renee Baecker <reneeb@cpan.org>
66              
67             =head1 COPYRIGHT AND LICENSE
68              
69             This software is Copyright (c) 2015 by Renee Baecker.
70              
71             This is free software, licensed under:
72              
73             The Artistic License 2.0 (GPL Compatible)
74              
75             =cut