line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::Critic::Itch; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
22258
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
77
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Perl::Critic::Itch - A collection of Perl::Critic Policies to solve some Itches |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Version 0.07 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $VERSION = '0.07'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Perl::Critic::Itch was created to fulfill some special requests when |
22
|
|
|
|
|
|
|
analyzing Perl Code. This policies, may not be useful to everyone, |
23
|
|
|
|
|
|
|
and surely not consensual, but they solve some little itches I had, |
24
|
|
|
|
|
|
|
and it makes me sleep better at night! |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
List of Policies implemented: |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::CodeLayout::ProhibitHashBarewords> |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 AUTHOR |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Marcelo Rodrigues, C<< <marcelo at cpan.org> >> |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 BUGS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Please report any bugs or feature requests to C<bug-perl-critic-itch at rt.cpan.org>, or through |
38
|
|
|
|
|
|
|
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Perl-Critic-Itch>. I will be notified, and then you'll |
39
|
|
|
|
|
|
|
automatically be notified of progress on your bug as I make changes. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SUPPORT |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
perldoc Perl::Critic::Itch |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
You can also look for information at: |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=over 4 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Perl-Critic-Itch> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item * CPAN Ratings |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/Perl-Critic-Itch> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item * Search CPAN |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
L<http://search.cpan.org/dist/Perl-Critic-Itch/> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=back |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Thanks to |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=over 4 |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item * Jose Carlos Pereira for pointing me in the right direction! |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=item * All Perl::Critic::Policy contributors. Their code examples were quite useful. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=back |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 LICENSE |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
85
|
|
|
|
|
|
|
under the same terms as Perl itself. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=cut |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
1; # End of Perl::Critic::Itch |