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

jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


The following commit(s) were added to refs/heads/master by this push:
     new c9714df75 fix checkstyle setting issue (#1857)
c9714df75 is described below

commit c9714df75cf05ea15ac7e5ccd346b032923c7ab2
Author: seagle <[email protected]>
AuthorDate: Thu May 5 16:29:09 2022 +0800

    fix checkstyle setting issue (#1857)
---
 pom.xml              | 7 +++++++
 style/checkstyle.xml | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1b3aa1675..398875f23 100644
--- a/pom.xml
+++ b/pom.xml
@@ -351,6 +351,13 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
                 <version>${checkstyle.version}</version>
+                <dependencies>
+                    <dependency>
+                        <groupId>com.puppycrawl.tools</groupId>
+                        <artifactId>checkstyle</artifactId>
+                        <version>8.45</version>
+                    </dependency>
+                </dependencies>
                 <configuration>
                     <configLocation>style/checkstyle.xml</configLocation>
                     <encoding>UTF-8</encoding>
diff --git a/style/checkstyle.xml b/style/checkstyle.xml
index 87daf7014..acc4c40d9 100644
--- a/style/checkstyle.xml
+++ b/style/checkstyle.xml
@@ -12,7 +12,7 @@
     </module>
     <module name="LineLength">
         <property name="max" value="100"/>
-        <property name="ignorePattern" value="^ *\* *[^ ]+$"/>
+        <property name="ignorePattern" value="^package.*|^import.*|a 
href|href|http://|https://|ftp://|Reflection\.*"/>
     </module>
     <module name="RegexpSingleline">
         <property name="format" value="System\.out\.println"/>
@@ -76,7 +76,7 @@
         </module>
         <module name="ArrayTypeStyle"/>
         <module name="MethodTypeParameterName">
-            <property name="format" 
value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
             <message key="name.invalidPattern"
                      value="Method type name ''{0}'' must match pattern 
''{1}''."/>
         </module>
@@ -86,7 +86,7 @@
                      value="Method name ''{0}'' must match pattern ''{1}''."/>
         </module>
         <module name="InterfaceTypeParameterName">
-            <property name="format" 
value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
             <message key="name.invalidPattern"
                      value="Interface type name ''{0}'' must match pattern 
''{1}''."/>
         </module>

Reply via email to