Groovy Documentation

groovy.org.codenarc.rule.size
[Groovy] Class ClassSizeRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.size.ClassSizeRule

class ClassSizeRule
extends AbstractAstVisitorRule

Rule that checks the size of a class.

The maxLines property holds the threshold value for the maximum number of lines. A class length (number of lines) greater than that value is considered a violation. The maxLines property defaults to 1000.

Authors:
Chris Mair
Hamlet D'Arcy


Property Summary
Class astVisitorClass

int maxLines

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


maxLines

int maxLines


name

String name


priority

int priority


 

Groovy Documentation