]> git.vpit.fr Git - perl/modules/Perl-Critic-Policy-Dynamic-NoIndirect.git/blob - README
Build the $name and the main $file from $dist
[perl/modules/Perl-Critic-Policy-Dynamic-NoIndirect.git] / README
1 NAME
2     Perl::Critic::Policy::Dynamic::NoIndirect - Perl::Critic policy against
3     indirect method calls.
4
5 VERSION
6     Version 0.04
7
8 DESCRIPTION
9     This Perl::Critic dynamic policy reports any use of indirect object
10     syntax with a 'stern' severity. It's listed under the 'dynamic' and
11     'maintenance' themes.
12
13     Since it wraps around indirect, it needs to compile the audited code and
14     as such is implemented as a subclass of Perl::Critic::DynamicPolicy.
15
16 CAVEATS
17     The uses of the indirect pragma inside the auditted code take precedence
18     over this policy. Hence no violations will be reported for indirect
19     method calls that are located inside the lexical scope of "use indirect"
20     or "no indirect hook => ...". Occurrences of "no indirect" won't be a
21     problem.
22
23     Since the reports generated by indirect are remapped to the
24     corresponding PPI::Element objects, the order in which the violations
25     are returned is different from the order given by indirect : the former
26     is the document order (top to bottom, left to right) while the latter is
27     the optree order (arguments before function calls).
28
29 DEPENDENCIES
30     perl 5.8, Carp.
31
32     Perl::Critic, Perl::Critic::Dynamic.
33
34     indirect.
35
36 AUTHOR
37     Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
38
39     You can contact me by mail or on "irc.perl.org" (vincent).
40
41 BUGS
42     Please report any bugs or feature requests to
43     "bug-perl-critic-policy-dynamic-noindirect at rt.cpan.org", or through
44     the web interface at
45     <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Perl-Critic-Policy-Dynam
46     ic-NoIndirect>. I will be notified, and then you'll automatically be
47     notified of progress on your bug as I make changes.
48
49 SUPPORT
50     You can find documentation for this module with the perldoc command.
51
52         perldoc Perl::Critic::Policy::Dynamic::NoIndirect 
53
54 COPYRIGHT & LICENSE
55     Copyright 2009 Vincent Pit, all rights reserved.
56
57     This program is free software; you can redistribute it and/or modify it
58     under the same terms as Perl itself.
59