PackageName: allow numbers in package names, after an initial letter
This commit is contained in:
parent
5890f179f8
commit
f73a7af6ab
2 changed files with 3 additions and 3 deletions
|
@ -1809,9 +1809,9 @@ Checks that the class has a `package` definition.
|
|||
|
||||
#### [PackageName](http://checkstyle.sourceforge.net/config_naming.html#PackageName)
|
||||
|
||||
Checks the format of package names.
|
||||
Checks the format of package names. Only lowercase letters, no initial numbers or any underscores.
|
||||
|
||||
Identifiers must match `^[a-z]+(\.[a-z]+)*$`.
|
||||
Identifiers must match `^[a-z]+(\.[a-z][a-z0-9]+)*$`.
|
||||
|
||||
#### [ParameterName](http://checkstyle.sourceforge.net/config_naming.html#ParameterName)
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@
|
|||
<module name="PackageAnnotation"/> <!-- package level annotations appear in package-info.java -->
|
||||
<module name="PackageDeclaration"/> <!-- class must have package and it must match the directory -->
|
||||
<module name="PackageName"> <!-- validate package name format -->
|
||||
<property name="format" value="^[a-z]+(\.[a-z]+)*$"/> <!-- only lowercase letters, no numbers of underscores -->
|
||||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]+)*$"/> <!-- only lowercase letters, no initial numbers or underscores -->
|
||||
</module>
|
||||
<module name="ParameterName"/> <!-- validate parameter name format -->
|
||||
<module name="ParameterNumber"> <!-- limits the number of parameters to 7 -->
|
||||
|
|
Loading…
Reference in a new issue