All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.puppycrawl.tools.checkstyle.meta.checks.design.OneTopLevelClassCheck.xml Maven / Gradle / Ivy

Go to download

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard

There is a newer version: 10.20.1
Show newest version
<?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>&lt;p&gt;
 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:
 &lt;a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-7.html#jls-7.6"&gt;
 7.6. Top Level Type Declarations&lt;/a&gt;. If file doesn't contain
 public class, interface, enum or annotation, top-level type is the first type in file.
 &lt;/p&gt;</description>
         <message-keys>
            <message-key key="one.top.level.class"/>
         </message-keys>
      </check>
   </module>
</checkstyle-metadata>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy