line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::Critic::RENEEB; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
68979
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
46
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: A collection of handy Perl::Critic policies |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '2.04'; |
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.04 |
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
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Renee Baecker <reneeb@cpan.org> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This software is Copyright (c) 2015 by Renee Baecker. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This is free software, licensed under: |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |