Skip to content

Commit

Permalink
* Enforce declaration of parameter as final
Browse files Browse the repository at this point in the history
* Enforce declaration of enhanced for-loop variables as final
* Require @deprecated annotation for deprecated elements
* Require @OverRide annotation for overridden methods
* Disallow empty statements
  • Loading branch information
ok2c committed Oct 20, 2017
1 parent ff2920f commit 87b1dd1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/resources/hc-stylecheck/default.xml
Expand Up @@ -29,7 +29,13 @@
<module name="UnusedImports"/>
<module name="EqualsHashCode"/>
<module name="FinalParameters"/>
<module name="FinalLocalVariable"/>
<module name="FinalLocalVariable">
<property name="tokens" value="VARIABLE_DEF, PARAMETER_DEF"/>
<property name="validateEnhancedForLoopVariable" value="true"/>
</module>
<module name="MissingDeprecated"/>
<module name="MissingOverride"/>
<module name="EmptyStatement"/>
</module>
<module name="Header">
<property name="headerFile" value="${checkstyle.header.file}" />
Expand Down

0 comments on commit 87b1dd1

Please sign in to comment.