Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 531 Bytes

TypeName.md

File metadata and controls

23 lines (14 loc) · 531 Bytes

Pattern: Invalid type name

Issue: -

Description

Validates identifiers for classes, interfaces, enums, and annotations.

Examples

The following configuration element ensures that interface names begin with "I_", followed by letters and digits:

<module name="TypeName">
    <property name="format" value="^I_[a-zA-Z0-9]*$"/>
    <property name="tokens" value="INTERFACE_DEF"/>
</module>

Further Reading