|
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.naming.PackageNameRule
class PackageNameRule extends AbstractAstVisitorRule
Rule that verifies that the package name of a class matches a regular expression. By default it checks that the package name consists of only lowercase letters and numbers, separated by periods.
Theregex
property specifies the regular expression to check the package name against. It is
required and cannot be null or empty. It defaults to '[a-z]+(\.[a-z0-9]+)*'.
The packageNameRequired
property indicates whether a package name declaration is required for
all classes. It defaults to false.
Property Summary | |
---|---|
Class |
astVisitorClass
|
String |
name
|
boolean |
packageNameRequired
|
int |
priority
|
String |
regex
|
Property Detail |
---|
Class astVisitorClass
String name
boolean packageNameRequired
int priority
String regex
Groovy Documentation