Search results for "module:Perl::Critic::Policy::BuiltinFunctions::RequireSimpleSortBlock"

Perl::Critic::Policy::BuiltinFunctions::RequireSimpleSortBlock - Sort blocks should have a single statement. River stage three • 131 direct dependents • 386 total dependents

Conway advises that sort functions should be simple. Any complicated operations on list elements should be computed and cached (perhaps via a Schwartzian Transform) before the sort, rather than computed inside the sort block, because the sort block i...

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.245 seconds)