Skip to content
Permalink
Browse files
* Enforce declaration of parameter as final
* 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 87b1dd1e1108a5b72de02d7909f5b4e51b3b574a
Showing 1 changed file with 7 additions and 1 deletion.
@@ -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}" />

0 comments on commit 87b1dd1

Please sign in to comment.