com.puppycrawl.tools.checkstyle.meta.checks.whitespace.NoWhitespaceBeforeCheck.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.whitespace.NoWhitespaceBeforeCheck" name="NoWhitespaceBefore" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><p> 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. </p></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>