
com.puppycrawl.tools.checkstyle.meta.checks.coding.OneStatementPerLineCheck.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.coding.OneStatementPerLineCheck" name="OneStatementPerLine" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><div> Checks that there is only one statement per line. </div> <p> Rationale: It's very difficult to read multiple statements on one line. </p> <p> In the Java programming language, statements are the fundamental unit of execution. All statements except blocks are terminated by a semicolon. Blocks are denoted by open and close curly braces. </p> <p> OneStatementPerLineCheck checks the following types of statements: variable declaration statements, empty statements, import statements, assignment statements, expression statements, increment statements, object creation statements, 'for loop' statements, 'break' statements, 'continue' statements, 'return' statements, resources statements (optional). </p></description> <properties> <property default-value="false" name="treatTryResourcesAsStatement" type="boolean"> <description>Enable resources processing.</description> </property> </properties> <message-keys> <message-key key="multiple.statements.line"/> </message-keys> </check> </module> </checkstyle-metadata>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy