You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by fc...@apache.org on 2025/09/18 11:52:23 UTC

(flink-kubernetes-operator) 01/02: [FLINK-38293] Update Checkstyle version and related rules in Kubernetes Operator

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

fcsaky pushed a commit to branch release-1.13
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git

commit d691488c0458de1bf4ca4ee9b988084742f34f4c
Author: Attila Mészáros <a_...@apple.com>
AuthorDate: Wed Sep 17 16:49:00 2025 +0200

    [FLINK-38293] Update Checkstyle version and related rules in Kubernetes Operator
    
    (cherry picked from commit acaa3e61df06db62acd43922dfdc5ce953583952)
---
 pom.xml                    | 10 +---------
 tools/maven/checkstyle.xml |  7 -------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index 506a2efe..66bea3cf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -281,15 +281,7 @@ under the License.
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
-                <version>2.17</version>
-                <dependencies>
-                    <dependency>
-                        <groupId>com.puppycrawl.tools</groupId>
-                        <artifactId>checkstyle</artifactId>
-                        <!-- Note: match version with docs/flinkDev/ide_setup.md -->
-                        <version>8.14</version>
-                    </dependency>
-                </dependencies>
+                <version>3.6.0</version>
                 <executions>
                     <execution>
                         <id>validate</id>
diff --git a/tools/maven/checkstyle.xml b/tools/maven/checkstyle.xml
index 759fea16..b160f472 100644
--- a/tools/maven/checkstyle.xml
+++ b/tools/maven/checkstyle.xml
@@ -276,16 +276,9 @@ This file is based on the checkstyle file of Apache Beam.
 		<!-- Checks for Javadoc comments.                     -->
 		<!-- See http://checkstyle.sf.net/config_javadoc.html -->
 		<module name="JavadocMethod">
-			<property name="scope" value="protected"/>
 			<property name="severity" value="error"/>
-			<property name="allowMissingJavadoc" value="true"/>
 			<property name="allowMissingParamTags" value="true"/>
 			<property name="allowMissingReturnTag" value="true"/>
-			<property name="allowMissingThrowsTags" value="true"/>
-			<property name="allowThrowsTagsForSubclasses" value="true"/>
-			<property name="allowUndeclaredRTE" value="true"/>
-			<!-- This check sometimes failed for with "Unable to get class information for @throws tag" for custom exceptions -->
-			<property name="suppressLoadErrors" value="true"/>
 		</module>
 
 		<!-- Check that paragraph tags are used correctly in Javadoc. -->