Groovy Documentation

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

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

class BracesForMethodRule
extends AbstractAstVisitorRule

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

Authors:
Geli Crick
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