This is an automated email from the ASF dual-hosted git repository.

vorburger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 708dddd   FINERACT-821 Added ForbidCertainImportsCheck checkstyle
708dddd is described below

commit 708dddd5f7301020457642dee05a5e4f5d6d50a5
Author: thesmallstar <[email protected]>
AuthorDate: Thu Jun 11 04:16:28 2020 +0530

     FINERACT-821 Added ForbidCertainImportsCheck
    checkstyle
---
 fineract-provider/config/checkstyle/checkstyle.xml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/fineract-provider/config/checkstyle/checkstyle.xml 
b/fineract-provider/config/checkstyle/checkstyle.xml
index 256ea1f..b198f2f 100644
--- a/fineract-provider/config/checkstyle/checkstyle.xml
+++ b/fineract-provider/config/checkstyle/checkstyle.xml
@@ -65,6 +65,12 @@
             <property name="sortImportsInGroupAlphabetically" value="true"/>
             <property name="customImportOrderRules" 
value="STATIC###THIRD_PARTY_PACKAGE"/>
         </module>
+        <module 
name="com.github.sevntu.checkstyle.checks.coding.ForbidCertainImportsCheck">
+            <property name="packageNameRegexp" value=".*" />
+            <property name="forbiddenImportsRegexp" 
value="com.google.common.base.Charsets" />
+            <property name="forbiddenImportsExcludesRegexp" value="" />
+            <message key="forbid.certain.imports" value="Use 
''java.nio.charset.StandardCharsets'' instead of ''{0}''" />
+        </module>
            <module name="OneStatementPerLine"/>
            <module name="EmptyStatement"/>
              <module name="RegexpSinglelineJava">
@@ -123,13 +129,8 @@
         <module name="MutableException"/>
         <module 
name="com.github.sevntu.checkstyle.checks.coding.AvoidHidingCauseExceptionCheck"
 />
 
-        < ! - - Checks for API conventions and the like - - >
-        <module 
name="com.github.sevntu.checkstyle.checks.coding.ForbidCertainImportsCheck">
-            <property name="packageNameRegexp" value=".*" />
-            <property name="forbiddenImportsRegexp" 
value="com.google.common.base.Charsets" />
-            <property name="forbiddenImportsExcludesRegexp" value="" />
-            <message key="forbid.certain.imports" value="Use 
''java.nio.charset.StandardCharsets'' instead of ''{0}''" />
-        </module>
+      
+     
       
 
         <module name="OuterTypeFilename"/>

Reply via email to