NAME
Perl::Critic::Policy::CodeLayout::RequireKRBracing - brace in K&R style
AFFILIATION
This policy as a part of the Perl::Critic::PolicyBundle::SNEZ distribution.
DESCRIPTION
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);
}
CONFIGURATION
This Policy is not configurable except for the standard options.
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.