org.codenarc.rule.size
[Groovy] Class ClassSizeRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
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
- Version:
- \$Revision: 418 \$ - \$Date: 2010-11-04 17:17:30 -0400 (Thu, 04 Nov 2010) \$
Methods inherited from class AbstractRule
|
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, isReady, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate |
astVisitorClass
Class astVisitorClass
-
maxLines
int maxLines
-
name
String name
-
priority
int priority
-
Groovy Documentation