line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::Critic::OTRS; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
66222
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: A collection of handy Perl::Critic policies |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.09'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
1; # End of Perl::Critic::OTRS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__END__ |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=pod |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=encoding UTF-8 |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Perl::Critic::OTRS - A collection of handy Perl::Critic policies |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 VERSION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
version 0.09 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 SYNOPSIS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Perl::Critic::OTRS is a collection of Perl::Critic policies that |
30
|
|
|
|
|
|
|
will help to program in the OTRS way of programming |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
The rules included with the Perl::Critic::OTRS group include: |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::ProhibitFetchrowHashref> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Kernel::System::DB provides a method called C<FetchrowHashref>, but this method |
39
|
|
|
|
|
|
|
is deprecated as this relies on C<DBI>'s fetchrow_hashref. Some users have |
40
|
|
|
|
|
|
|
reported problems with it on some database systems. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::ProhibitDumper> |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::ProhibitLocaltime> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::ProhibitLowPrecedenceOps> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::ProhibitOpen> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::ProhibitPushISA> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::ProhibitRequire> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::ProhibitSomeCoreFunctions> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::RequireCamelCase> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::RequireParensWithMethods> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 L<Perl::Critic::Policy::OTRS::RequireTrueReturnValueForModules> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 WHY A COLLECTION OF OTRS POLICIES? |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
The policies bundled in this distributions represent the coding guideline |
65
|
|
|
|
|
|
|
provided by the OTRS project. It's always a good idea to program the way the |
66
|
|
|
|
|
|
|
project itself does. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
So every programmer who is familiar with the OTRS codebase can read and follow |
69
|
|
|
|
|
|
|
your code. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 ACKNOWLEDGMENTS |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Thanks to |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=over 4 |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=item * L<Martin Edenhofer|https://github.com/martini> for creating a great tool like OTRS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * L<Martin Gruner|https://github.com/mgruner> for improvements for this module |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=item * L<Michiel Beijen|https://github.com/mbeijen> for improvements for this module |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item * L<Pete Houston|https://github.com/openstrike> for lots of pull requests that improve the quality/kwalitee of the module |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=item * L<Ramanan Balakrishnan|https://github.com/ramananbalakrishnan> for fixing test failures |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=back |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 AUTHOR |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Renee Baecker <info@perl-services.de> |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
This software is Copyright (c) 2013 by Renee Baecker. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This is free software, licensed under: |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |