Ver Fonte

Open checkstyle, change checkstyle severity from info to warning (#10492)

* Open checkstyle, change checkstyle severity from info to warning
Wenjun Ruan há 2 anos atrás
pai
commit
00f86da1da

+ 1 - 1
.github/workflows/api-test.yml

@@ -65,7 +65,7 @@ jobs:
           ./mvnw -B clean install \
           -Dmaven.test.skip \
           -Dmaven.javadoc.skip \
-          -Dmaven.checkstyle.skip \
+          -Dcheckstyle.skip=true \
           -Pdocker,release -Ddocker.tag=ci \
           -pl dolphinscheduler-standalone-server -am
       - name: Export Docker Images

+ 1 - 1
.github/workflows/e2e.yml

@@ -65,7 +65,7 @@ jobs:
           ./mvnw -B clean install \
           -Dmaven.test.skip \
           -Dmaven.javadoc.skip \
-          -Dmaven.checkstyle.skip \
+          -Dcheckstyle.skip=true \
           -Pdocker,release -Ddocker.tag=ci \
           -pl dolphinscheduler-standalone-server -am
       - name: Export Docker Images

+ 1 - 1
.github/workflows/publish-docker.yaml

@@ -56,7 +56,7 @@ jobs:
           ./mvnw -B clean deploy \
           -Dmaven.test.skip \
           -Dmaven.javadoc.skip \
-          -Dmaven.checkstyle.skip \
+          -Dcheckstyle.skip=true \
           -Dmaven.deploy.skip \
           -Ddocker.tag=${{ github.sha }} \
           -Ddocker.hub=${{ env.HUB }} \

+ 1 - 1
.github/workflows/py-ci.yml

@@ -137,7 +137,7 @@ jobs:
           ./mvnw -B clean install \
           -Dmaven.test.skip \
           -Dmaven.javadoc.skip \
-          -Dmaven.checkstyle.skip \
+          -Dcheckstyle.skip=true \
           -Pdocker,release -Ddocker.tag=ci \
           -pl dolphinscheduler-standalone-server -am
       - name: Export Docker Images

+ 1 - 1
.github/workflows/unit-test.yml

@@ -71,7 +71,7 @@ jobs:
           key: ${{ runner.os }}-maven
 
       - name: Run Unit tests
-        run: ./mvnw clean verify -B -Dmaven.test.skip=false
+        run: ./mvnw clean verify -B -Dmaven.test.skip=false -Dcheckstyle.skip=true
       - name: Upload coverage report to codecov
         run: CODECOV_TOKEN="09c2663f-b091-4258-8a47-c981827eb29a" bash <(curl -s https://codecov.io/bash)
 

+ 6 - 1
style/checkstyle.xml

@@ -21,7 +21,9 @@
 <module name="Checker">
     <property name="charset" value="UTF-8"/>
 
-    <property name="severity" value="info"/>
+    <property name="severity" value="warning"/>
+
+    <module name="SuppressWarningsFilter"/>
 
     <property name="fileExtensions" value="java, properties, xml"/>
 
@@ -40,6 +42,9 @@
     </module>
 
     <module name="TreeWalker">
+
+        <module name="SuppressWarningsHolder"/>
+
         <module name="OuterTypeFilename">
             <property name="severity" value="error"/>
         </module>