You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2020/12/28 13:35:36 UTC

[flink] 04/11: [FLINK-20651] Remove checkstyle checks that don't work/are not needed with google-java-format

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

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit acccb1a1acab894f1e2d398abe7903e64487e2fd
Author: Aljoscha Krettek <al...@apache.org>
AuthorDate: Tue Dec 15 16:55:49 2020 +0100

    [FLINK-20651] Remove checkstyle checks that don't work/are not needed with google-java-format
---
 tools/maven/checkstyle.xml | 37 -------------------------------------
 1 file changed, 37 deletions(-)

diff --git a/tools/maven/checkstyle.xml b/tools/maven/checkstyle.xml
index df350be..c99bc3a 100644
--- a/tools/maven/checkstyle.xml
+++ b/tools/maven/checkstyle.xml
@@ -31,10 +31,6 @@ This file is based on the checkstyle file of Apache Beam.
 
 <module name="Checker">
 
-	<!--<module name="FileTabCharacter">-->
-	<!--&lt;!&ndash; Checks that there are no tab characters in the file. &ndash;&gt;-->
-	<!--</module>-->
-
 	<module name="NewlineAtEndOfFile">
 		<!-- windows can use \r\n vs \n, so enforce the most used one ie UNIx style -->
 		<property name="lineSeparator" value="lf"/>
@@ -97,13 +93,6 @@ This file is based on the checkstyle file of Apache Beam.
 
 		-->
 
-		<module name="RegexpSinglelineJava">
-			<property name="format" value="^\t* +\t*\S"/>
-			<property name="message"
-					  value="Line has leading space characters; indentation should be performed with tabs only."/>
-			<property name="ignoreComments" value="true"/>
-		</module>
-
 		<!-- Prohibit T.getT() methods for standard boxed types -->
 		<module name="Regexp">
 			<property name="format" value="Boolean\.getBoolean"/>
@@ -418,32 +407,6 @@ This file is based on the checkstyle file of Apache Beam.
 		<!--value="^(package .*;\s*)|(import .*;\s*)|( *\* .*https?://.*)$"/>-->
 		<!--</module>-->
 
-		<module name="LeftCurly">
-			<!-- Checks for placement of the left curly brace ('{'). -->
-			<property name="severity" value="error"/>
-		</module>
-
-		<!--<module name="RightCurly">-->
-		<!--&lt;!&ndash; Checks right curlies on CATCH, ELSE, and TRY blocks are on-->
-		<!--the same line. e.g., the following example is fine:-->
-		<!--<pre>-->
-		<!--if {-->
-		<!--...-->
-		<!--} else-->
-		<!--</pre>-->
-		<!--&ndash;&gt;-->
-		<!--&lt;!&ndash; This next example is not fine:-->
-		<!--<pre>-->
-		<!--if {-->
-		<!--...-->
-		<!--}-->
-		<!--else-->
-		<!--</pre>-->
-		<!--&ndash;&gt;-->
-		<!--<property name="option" value="same"/>-->
-		<!--<property name="severity" value="error"/>-->
-		<!--</module>-->
-
 		<!-- Checks for braces around if and else blocks -->
 		<module name="NeedBraces">
 			<property name="severity" value="error"/>