Groovy Documentation

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

java.lang.Object
  org.codenarc.rule.AbstractRule
      groovy.org.codenarc.rule.formatting.BracesForClassRule

class BracesForClassRule
extends AbstractRule

Checks the location of the opening brace ({) for classes. 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
String name

int priority

boolean sameLine

 
Method Summary
void applyTo(SourceCode sourceCode, List violations)

 

Property Detail

name

String name


priority

int priority


sameLine

boolean sameLine


 
Method Detail

applyTo

@Override
void applyTo(SourceCode sourceCode, List violations)


 

Groovy Documentation