Search results for "dist:Perl-Critic-PolicyBundle-SNEZ SNEZ"
Perl::Critic::PolicyBundle::SNEZ - extra Perl::Critic policies
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
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
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
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
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
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
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