
com.puppycrawl.tools.checkstyle.meta.checks.coding.FinalLocalVariableCheck.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.FinalLocalVariableCheck" name="FinalLocalVariable" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><div> Checks that local variables that never have their values changed are declared final. The check can be configured to also check that unchanged parameters are declared final. </div> <p> When configured to check parameters, the check ignores parameters of interface methods and abstract methods. </p></description> <properties> <property default-value="false" name="validateEnhancedForLoopVariable" type="boolean"> <description>Control whether to check <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-14.html#jls-14.14.2"> enhanced for-loop</a> variable.</description> </property> <property default-value="false" name="validateUnnamedVariables" type="boolean"> <description>Control whether to check <a href="https://docs.oracle.com/javase/specs/jls/se21/preview/specs/unnamed-jls.html"> unnamed variables</a>.</description> </property> <property default-value="VARIABLE_DEF" name="tokens" type="java.lang.String[]" validation-type="tokenSet"> <description>tokens to check</description> </property> </properties> <message-keys> <message-key key="final.variable"/> </message-keys> </check> </module> </checkstyle-metadata>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy