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

com.puppycrawl.tools.checkstyle.meta.checks.whitespace.NoWhitespaceBeforeCheck.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.18.1
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle-metadata>
   <module>
      <check fully-qualified-name="com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck"
             name="NoWhitespaceBefore"
             parent="com.puppycrawl.tools.checkstyle.TreeWalker">
         <description>&lt;p&gt;
 Checks that there is no whitespace before a token.
 More specifically, it checks that it is not preceded with whitespace,
 or (if linebreaks are allowed) all characters on the line before are
 whitespace. To allow linebreaks before a token, set property
 {@code allowLineBreaks} to {@code true}. No check occurs before semi-colons in empty
 for loop initializers or conditions.
 &lt;/p&gt;</description>
         <properties>
            <property default-value="false" name="allowLineBreaks" type="boolean">
               <description>Control whether whitespace is allowed
 if the token is at a linebreak.</description>
            </property>
            <property default-value="COMMA,SEMI,POST_INC,POST_DEC,ELLIPSIS,LABELED_STAT"
                      name="tokens"
                      type="java.lang.String[]"
                      validation-type="tokenSet">
               <description>tokens to check</description>
            </property>
         </properties>
         <message-keys>
            <message-key key="ws.preceded"/>
         </message-keys>
      </check>
   </module>
</checkstyle-metadata>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy