com.puppycrawl.tools.checkstyle.meta.checks.blocks.NeedBracesCheck.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.blocks.NeedBracesCheck" name="NeedBraces" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><p> Checks for braces around code blocks. </p></description> <properties> <property default-value="false" name="allowEmptyLoopBody" type="boolean"> <description>Allow loops with empty bodies.</description> </property> <property default-value="false" name="allowSingleLineStatement" type="boolean"> <description>Allow single-line statements without braces.</description> </property> <property default-value="LITERAL_DO,LITERAL_ELSE,LITERAL_FOR,LITERAL_IF,LITERAL_WHILE" name="tokens" type="java.lang.String[]" validation-type="tokenSet"> <description>tokens to check</description> </property> </properties> <message-keys> <message-key key="needBraces"/> </message-keys> </check> </module> </checkstyle-metadata>