Pattern: Invalid package name
Issue: -
Validates identifiers for packages.
The default value of format
for module PackageName
has been chosen to match the requirements in the Java Language specification and the Sun coding conventions. However both underscores and uppercase letters are rather uncommon, so most configurations should probably assign value ^[a-z]+(\\.[a-z][a-z0-9]*)*$
to format
for module PackageName
, as in
<module name="PackageName">
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
</module>