
com.puppycrawl.tools.checkstyle.meta.checks.blocks.RightCurlyCheck.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <checkstyle-metadata> <module> <check fully-qualified-name="com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck" name="RightCurly" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><p> Checks the placement of right curly braces (<code>'}'</code>) for code blocks. This check supports if-else, try-catch-finally blocks, switch statements, while-loops, for-loops, method definitions, class definitions, constructor definitions, instance, static initialization blocks, annotation definitions and enum definitions. For right curly brace of expression blocks of arrays, lambdas and class instances please follow issue <a href="https://github.com/checkstyle/checkstyle/issues/5945">#5945</a>. For right curly brace of enum constant please follow issue <a href="https://github.com/checkstyle/checkstyle/issues/7519">#7519</a>. </p></description> <properties> <property default-value="same" name="option" type="com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyOption"> <description>Specify the policy on placement of a right curly brace (<code>'}'</code>).</description> </property> <property default-value="LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_IF,LITERAL_ELSE" name="tokens" type="java.lang.String[]" validation-type="tokenSet"> <description>tokens to check</description> </property> </properties> <message-keys> <message-key key="line.alone"/> <message-key key="line.break.before"/> <message-key key="line.same"/> </message-keys> </check> </module> </checkstyle-metadata>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy