org.codenarc.rule.unused
[Groovy] Class UnusedVariableRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.unused.UnusedVariableRule
class UnusedVariableRule
extends AbstractAstVisitorRule
Rule that checks for variables that are not referenced.
- Authors:
- Chris Mair
- Hamlet D'Arcy
- Version:
- \$Revision: 612 \$ - \$Date: 2011-02-25 03:43:18 -0500 (Fri, 25 Feb 2011) \$
Methods inherited from class AbstractRule
|
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, isReady, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate |
name
String name
-
priority
int priority
-
applyTo
@Override
void applyTo(SourceCode sourceCode, List violations)
-
Groovy Documentation