The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Search results for "distribution:Perl-Critic-PolicyBundle-SNEZ SNEZ"

Perl::Critic::PolicyBundle::SNEZ - extra Perl::Critic policies River stage one • 1 direct dependent • 1 total dependent

This is a set of policies I deemed useful but were not present in the core Perl::Critic (as far as I know)....

SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.02 - 09 Aug 2019 12:24:48 UTC

Perl::Critic::Policy::CodeLayout::RequireKRParens - parenthesise in K&R style River stage one • 1 direct dependent • 1 total dependent

Put spaces on the outside of parentheses when they are not argument lists. # not ok do_something (12); foreach my $elem(@array) { ... } # ok do_something(12); foreach my $elem (@array) { ... }...

SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.02 - 09 Aug 2019 12:24:48 UTC

Perl::Critic::Policy::CodeLayout::RequireKRBracing - brace in K&R style River stage one • 1 direct dependent • 1 total dependent

The K&R style requires less lines per block than BSD and GNU styles without sacrificing the recognizability of its boundaries. Place the opening brace of a block at the end of the construct which controls it, not on a new line. # not ok foreach my $n...

SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.02 - 09 Aug 2019 12:24:48 UTC

Perl::Critic::Policy::CodeLayout::RequireBreakBeforeOperator - multiline expressions should be broken before operator River stage one • 1 direct dependent • 1 total dependent

Continuations of multiline expressions are easier to spot when they begin with operators, which is unusual in Perl code. Therefore, in all multiline expressions, newlines should be placed before operators, not after....

SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.02 - 09 Aug 2019 12:24:48 UTC

Perl::Critic::Policy::CodeLayout::RequireSpaceAroundBinaryOperators - put spaces around operators River stage one • 1 direct dependent • 1 total dependent

Squashing operators and operands together produces less readable code. Put spaces around binary operators....

SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.02 - 09 Aug 2019 12:24:48 UTC

Perl::Critic::Policy::ControlStructures::ProhibitMultipleSubscripts - forbid using the same subscript multiple times in a loop River stage one • 1 direct dependent • 1 total dependent

Conway suggests only extracting specific values of arrays and hashes in loops exactly once and assigning them to variables for later access. Not only does it make the code less cluttered with repeated lookups, it is also more efficient in many cases....

SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.02 - 09 Aug 2019 12:24:48 UTC

Perl::Critic::Policy::ValuesAndExpressions::ProhibitListsInMultiConstants - use a single-constant declaration for lists River stage one • 1 direct dependent • 1 total dependent

Constants can be lists, however, this can only work if a single constant is declared at a time. ## this is fine use constant MULTI => ('one', 'two', 'three'); use constant SINGLE => 1; # # produces two constants: # SINGLE = 1 # MULTI = ('one', 'two',...

SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.02 - 09 Aug 2019 12:24:48 UTC
7 results (0.039 seconds)