Allow only lowercase and digits in package name
<property name="format" value="^[a-z][a-zA-Z0-9_]*$" />
</module>
<module name="MethodName" />
- <module name="PackageName" />
+ <!-- Allow only lowercase and digits in package name -->
+ <module name="PackageName">
+ <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+ </module>
<module name="ParameterName">
<property name="format" value="^[a-z][a-zA-Z0-9_]*$" />
</module>
