[java-parent-project-v3] 02/02: JPAR-85 - Checkstyle, check final variables

Tom Zeller tzeller at dragonacea.biz
Mon Aug 7 15:37:43 EDT 2017


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch master
in repository java-parent-project-v3.

View the commit online:
http://git.shibboleth.net/view/?p=java-parent-project-v3.git;a=commit;h=4e91035bb117eb699b1a9ba87f290241d655d955

commit 4e91035bb117eb699b1a9ba87f290241d655d955
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Mon Aug 7 14:20:16 2017 -0500

    JPAR-85 - Checkstyle, check final variables
---
 resources/checkstyle/checkstyle.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/resources/checkstyle/checkstyle.xml b/resources/checkstyle/checkstyle.xml
index 5626d7c..5cab513 100644
--- a/resources/checkstyle/checkstyle.xml
+++ b/resources/checkstyle/checkstyle.xml
@@ -96,6 +96,10 @@
     <module name="FinalParameters">
       <property name="tokens" value="METHOD_DEF,CTOR_DEF,LITERAL_CATCH"/>
     </module>
+    <module name="FinalLocalVariable">
+      <property name="tokens" value="PARAMETER_DEF,VARIABLE_DEF"/>
+      <property name="validateEnhancedForLoopVariable" value="true"/>
+    </module>
   </module>
   <module name="SuppressionCommentFilter">
     <property name="offCommentFormat" value="\bCheck[Ss]tyle:\s*([\w|]+)\s+OFF\b"/>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list