Add checkstyle rule to show final local variable violations as warning
This commit is contained in:
parent
5ef407d15f
commit
d306513319
|
@ -154,6 +154,10 @@
|
||||||
<module name="MultipleVariableDeclarations"/>
|
<module name="MultipleVariableDeclarations"/>
|
||||||
<module name="SimplifyBooleanExpression"/>
|
<module name="SimplifyBooleanExpression"/>
|
||||||
<module name="SimplifyBooleanReturn"/>
|
<module name="SimplifyBooleanReturn"/>
|
||||||
|
<module name="FinalLocalVariable">
|
||||||
|
<property name="tokens" value="VARIABLE_DEF,PARAMETER_DEF"/>
|
||||||
|
<property name="validateEnhancedForLoopVariable" value="true"/>
|
||||||
|
</module>
|
||||||
|
|
||||||
<!-- Checks for class design -->
|
<!-- Checks for class design -->
|
||||||
<!-- See https://checkstyle.org/config_design.html -->
|
<!-- See https://checkstyle.org/config_design.html -->
|
||||||
|
|
Loading…
Reference in New Issue