Perl::Critic::Policy::CodeLayout::RequireKRBracing - brace in K&R style
This policy as a part of the Perl::Critic::PolicyBundle::SNEZ distribution.
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 $name (@names) { print "$name\n"; sign_up($name); } # ok foreach my $name (@names) { print "$name\n"; sign_up($name); }
This Policy is not configurable except for the standard options.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Perl::Critic::PolicyBundle::SNEZ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::PolicyBundle::SNEZ
CPAN shell
perl -MCPAN -e shell install Perl::Critic::PolicyBundle::SNEZ
For more information on module installation, please visit the detailed CPAN module installation guide.