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