org.codenarc.rule.unused
[Groovy] Class UnusedPrivateFieldRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.unused.UnusedPrivateFieldRule
class UnusedPrivateFieldRule
extends AbstractAstVisitorRule
Rule that checks for private fields that are not referenced within the same class.
The ignoreFieldNames
property optionally specifies one or more
(comma-separated) field names that should be ignored (i.e., that should not cause a
rule violation). The name(s) may optionally include wildcard characters ('*' or '?').
- Authors:
- Chris Mair
- Hamlet D'Arcy
- Version:
- \$Revision: 609 \$ - \$Date: 2011-02-24 13:48:43 -0500 (Thu, 24 Feb 2011) \$
Methods inherited from class AbstractRule
|
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, isReady, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate |
ignoreFieldNames
String ignoreFieldNames
-
name
String name
-
priority
int priority
-
applyTo
@Override
void applyTo(SourceCode sourceCode, List violations)
-
Groovy Documentation