DOKK / manpages / debian 12 / libperl-critic-community-perl / Perl::Critic::Policy::Freenode::IndirectObjectNotation.3pm.en
Perl::Critic::Policy::Freenode::IndirectObjectNotation(3pm) User Contributed Perl Documentation Perl::Critic::Policy::Freenode::IndirectObjectNotation(3pm)

Perl::Critic::Policy::Freenode::IndirectObjectNotation - Don't call methods indirectly

Legacy "freenode" theme policy alias.

This policy has been moved to Perl::Critic::Community.

This policy is part of Perl::Critic::Freenode.

This policy can be configured, in the same way as its parent policy Perl::Critic::Policy::Objects::ProhibitIndirectSyntax, to attempt to forbid additional method names from being called indirectly. Be aware this may lead to false positives as it is difficult to detect indirect object notation by static analysis. The "new" subroutine is always forbidden in addition to these.

 [Freenode::IndirectObjectNotation]
 forbid = create destroy

Dan Book, "dbook@cpan.org"

Copyright 2015, Dan Book.

This library is free software; you may redistribute it and/or modify it under the terms of the Artistic License version 2.0.

Perl::Critic, Perl::Critic::Community

2022-07-27 perl v5.34.0