|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codenarc.rule.AbstractAstVisitorRule
groovy.org.codenarc.rule.unnecessary.UnnecessaryObjectReferencesRule
class UnnecessaryObjectReferencesRule extends AbstractAstVisitorRule
Violations are triggered when an excessive set of consecutive statements all reference the same variable. This can be made more readable by using a with or identity block.
Property Summary | |
---|---|
Class |
astVisitorClass
|
int |
maxReferencesAllowed
|
String |
name
|
int |
priority
|
Property Detail |
---|
Class astVisitorClass
int maxReferencesAllowed
String name
int priority
Groovy Documentation