com.puppycrawl.tools.checkstyle.meta.checks.design.OneTopLevelClassCheck.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.design.OneTopLevelClassCheck" name="OneTopLevelClass" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><p> Checks that each top-level class, interface, enum or annotation resides in a source file of its own. Official description of a 'top-level' term: <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-7.html#jls-7.6"> 7.6. Top Level Type Declarations</a>. If file doesn't contain public class, interface, enum or annotation, top-level type is the first type in file. </p></description> <message-keys> <message-key key="one.top.level.class"/> </message-keys> </check> </module> </checkstyle-metadata>