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]*(\.[a-z0-9]+)*'.
The packageNameRequired property indicates whether a package name declaration is required for
all classes. It defaults to false.
| Type | Name and description |
|---|---|
Class |
astVisitorClass |
String |
name |
boolean |
packageNameRequired |
int |
priority |
String |
regex |