Rule that checks that else blocks use braces rather than a single statement.
By default, braces are not required for an else
if it is followed immediately
by an if
. Set the bracesRequiredForElseIf
property to true to
require braces is that situation as well.
Type | Name and description |
---|---|
Class |
astVisitorClass |
boolean |
bracesRequiredForElseIf |
String |
name |
int |
priority |