X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FPerl%2FCritic%2FPolicy%2FDynamic%2FNoIndirect.pm;fp=lib%2FPerl%2FCritic%2FPolicy%2FDynamic%2FNoIndirect.pm;h=556ecc6013c209778fce30672b363fd3b85682a0;hb=05870b723b862a0daadd62a71b81e3e8bca7f881;hp=cb88e6bae8fd68bd26e97a566374bbbd34778a71;hpb=ef89faf5a36a866b83462cad90209f9cc68a7e41;p=perl%2Fmodules%2FPerl-Critic-Policy-Dynamic-NoIndirect.git diff --git a/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm b/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm index cb88e6b..556ecc6 100644 --- a/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm +++ b/lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm @@ -115,6 +115,12 @@ sub violates_dynamic { } @violations; } +=head1 CAVEATS + +The uses of the L pragma inside the auditted code take precedence over this policy. +Hence no violations will be reported for indirect method calls that are located inside the lexical scope of C or C<< no indirect hook => ... >>. +Occurrences of C won't be a problem. + =head1 DEPENDENCIES L 5.8, L.