Search results for "perl::critic::policy::dynamic::noindirect"
Perl::Critic::Policy::Dynamic::NoIndirect - Perl::Critic policy against indirect method calls.
This Perl::Critic dynamic policy reports any use of indirect object syntax with a 'stern' severity. It's listed under the 'dynamic' and 'maintenance' themes. Since it wraps around indirect, it needs to compile the audited code and as such is implemen...
VPIT/Perl-Critic-Policy-Dynamic-NoIndirect-0.06 - 25 Aug 2011 14:55:26 UTC - Search in distribution
Perl::Critic::Policy::TryTiny::RequireUse - Requires that code which utilizes Try::Tiny actually use()es it.
A common problem with Try::Tiny is forgetting to use the module in the first place. For example: perl -e 'try { print "hello" } catch { print "world" }' Can't call method "catch" without a package or object reference at -e line 1. helloworld If you f...
BLUEFEET/Perl-Critic-Policy-TryTiny-RequireUse-0.05 - 03 Mar 2019 18:55:41 UTC - Search in distribution
Perl::Critic::Policy::Objects::ProhibitIndirectSyntax - Prohibit indirect object call syntax.
Indirect object syntax is commonly used in other object-oriented languages for instantiating objects. Perl allows this, but to say that it supports it may be going too far. Instead of writing my $foo = new Foo; it is preferable to write my $foo = Foo...
PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC - Search in distribution