Skip to content

Files

Latest commit

 

History

History
22 lines (13 loc) · 786 Bytes

PackageName.md

File metadata and controls

22 lines (13 loc) · 786 Bytes

Pattern: Invalid package name

Issue: -

Description

Validates identifiers for packages.

Examples

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>

Further Reading