Groovy Documentation

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

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

class BracesForForLoopRule
extends AbstractAstVisitorRule

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

Authors:
Hamlet D'Arcy


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