
com.puppycrawl.tools.checkstyle.meta.checks.naming.PackageNameCheck.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkstyle Show documentation
Show all versions of checkstyle Show documentation
Checkstyle is a development tool to help programmers write Java code
that adheres to a coding standard
<?xml version="1.0" encoding="UTF-8"?> <checkstyle-metadata> <module> <check fully-qualified-name="com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck" name="PackageName" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><div> Checks that package names conform to a specified pattern. </div> <p> The default value of {@code format} for module {@code PackageName} has been chosen to match the requirements in the <a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-6.html#jls-6.5.3"> Java Language specification</a> and the Sun coding conventions. However, both underscores and uppercase letters are rather uncommon, so most configurations should probably assign value {@code ^[a-z]+(\.[a-z][a-z0-9]*)*$} to {@code format} for module {@code PackageName}. </p></description> <properties> <property default-value="^[a-z]+(\.[a-zA-Z_]\w*)*$" name="format" type="java.util.regex.Pattern"> <description>Control the pattern to match valid identifiers.</description> </property> </properties> <message-keys> <message-key key="name.invalidPattern"/> </message-keys> </check> </module> </checkstyle-metadata>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy