|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.codenarc.rule.AbstractSharedAstVisitorRule
groovy.org.codenarc.rule.unused.UnusedPrivateFieldRule
class UnusedPrivateFieldRule extends AbstractSharedAstVisitorRule
Rule that checks for private fields that are not referenced within the same class.
TheignoreFieldNames 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 '?').
| Property Summary | |
|---|---|
String |
ignoreFieldNames
|
String |
name
|
int |
priority
|
| Method Summary | |
|---|---|
protected AstVisitor
|
getAstVisitor(SourceCode sourceCode)
|
protected List
|
getViolations(AstVisitor visitor, SourceCode sourceCode)
|
| Property Detail |
|---|
String ignoreFieldNames
String name
int priority
| Method Detail |
|---|
@Override protected AstVisitor getAstVisitor(SourceCode sourceCode)
@Override protected List getViolations(AstVisitor visitor, SourceCode sourceCode)
Groovy Documentation