Groovy Documentation

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

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

class LineLengthRule
extends AbstractAstVisitorRule

Checks the maximum length for each line of source code. It checks for number of characters, so lines that include tabs may appear longer than the allowed number when viewing the file. The maximum line length can be configured by setting the length property, which defaults to 120.

Authors:
Hamlet D'Arcy
Geli Crick


Property Summary
int length

String name

int priority

 
Method Summary
void applyTo(SourceCode sourceCode, List violations)

 

Property Detail

length

int length


name

String name


priority

int priority


 
Method Detail

applyTo

@Override
void applyTo(SourceCode sourceCode, List violations)


 

Groovy Documentation