Groovy Documentation

groovy.org.codenarc.rule.formatting
[Groovy] Class BracesForIfElseRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.formatting.BracesForIfElseRule

class BracesForIfElseRule
extends AbstractAstVisitorRule

Checks the location of the opening brace ({) for if statements. By default, requires them on the same line, but the sameLine property can be set to false to override this.

Authors:
Hamlet D'Arcy
Geli Crick


Property Summary
Class astVisitorClass

String name

int priority

boolean sameLine

 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


sameLine

boolean sameLine


 

Groovy Documentation