|
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.generic.IllegalClassReferenceRule
class IllegalClassReferenceRule extends AbstractAstVisitorRule
Checks for reference to any of the named classes.
TheclassNames
property specifies the comma-separated list of (fully-qualified) class names to check for.
The class name(s) may optionally include wildcard characters ('*' or '?'). Note that the '*' wildcard
matches any sequence of zero or more characters in the class/package name, e.g. 'a.*.MyClass' matches
'a.b.MyClass' as well as 'a.b.c.d.MyClass'. If classNames
is null or empty, do nothing.
Known limitation: Does not catch references as Anonymous Inner class: def x = new org.bad.Handler() { .. }
Property Summary | |
---|---|
String |
classNames
|
String |
name
|
int |
priority
|
Method Summary | |
---|---|
AstVisitor
|
getAstVisitor()
|
boolean
|
isReady()
|
Property Detail |
---|
String classNames
String name
int priority
Method Detail |
---|
@Override AstVisitor getAstVisitor()
@Override boolean isReady()
Groovy Documentation