Search results for "module:Perl::Critic::Policy::Subroutines::RequireFinalReturn"

Perl::Critic::Policy::Subroutines::RequireFinalReturn - End every path through a subroutine with an explicit return statement. River stage three • 131 direct dependents • 386 total dependents

Require all subroutines to terminate explicitly with one of the following: "return", "carp", "croak", "die", "exec", "exit", "goto", or "throw". Subroutines without explicit return statements at their ends can be confusing. It can be challenging to d...

PETDANCE/Perl-Critic-1.142 - 29 Nov 2022 02:20:23 UTC

Perl::Critic::Policy::CodeLayout::RequireFinalSemicolon - require a semicolon at the end of code blocks River stage two • 5 direct dependents • 18 total dependents

This policy is part of the "Perl::Critic::Pulp" add-on. It asks you to put a semicolon ";" on the final statement of a subroutine or block. sub foo { do_something(); # ok } sub bar { do_something() # bad } The idea is that if you add more code you do...

KRYDE/Perl-Critic-Pulp-99 - 28 Feb 2021 08:34:14 UTC
2 results (0.096 seconds)