hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [1/2] httpcomponents-stylecheck git commit: * 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 m
Date Fri, 20 Oct 2017 14:05:43 GMT
Repository: httpcomponents-stylecheck
Updated Branches:
  refs/heads/master ee0812ae6 -> 87b1dd1e1


* 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


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-stylecheck/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-stylecheck/commit/87b1dd1e
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-stylecheck/tree/87b1dd1e
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-stylecheck/diff/87b1dd1e

Branch: refs/heads/master
Commit: 87b1dd1e1108a5b72de02d7909f5b4e51b3b574a
Parents: ff2920f
Author: Oleg Kalnichevski <olegk@apache.org>
Authored: Fri Oct 20 15:58:53 2017 +0200
Committer: Oleg Kalnichevski <olegk@apache.org>
Committed: Fri Oct 20 16:05:13 2017 +0200

----------------------------------------------------------------------
 src/main/resources/hc-stylecheck/default.xml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-stylecheck/blob/87b1dd1e/src/main/resources/hc-stylecheck/default.xml
----------------------------------------------------------------------
diff --git a/src/main/resources/hc-stylecheck/default.xml b/src/main/resources/hc-stylecheck/default.xml
index 11b852f..dd0b39b 100644
--- a/src/main/resources/hc-stylecheck/default.xml
+++ b/src/main/resources/hc-stylecheck/default.xml
@@ -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}" />


Mime
View raw message