You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by vl...@apache.org on 2019/11/18 22:30:55 UTC

[calcite-avatica] 03/03: Whitespace is managed with Spotless, so the check is removed from Checkstyle config

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

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git

commit 9c401b402941fbbf9bfa6f7f2d7c4adf2da53da5
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Tue Nov 19 01:29:49 2019 +0300

    Whitespace is managed with Spotless, so the check is removed from Checkstyle config
---
 build.gradle.kts                       |  2 +-
 src/main/config/checkstyle/checker.xml | 12 ------------
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index 7756b1e..7f7157d 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -324,7 +324,7 @@ allprojects {
                     )
                     removeUnusedImports()
                     trimTrailingWhitespace()
-                    indentWithSpaces(4)
+                    indentWithSpaces(2)
                     endWithNewline()
                 }
             }
diff --git a/src/main/config/checkstyle/checker.xml b/src/main/config/checkstyle/checker.xml
index edf0de7..501cc19 100644
--- a/src/main/config/checkstyle/checker.xml
+++ b/src/main/config/checkstyle/checker.xml
@@ -37,18 +37,6 @@ limitations under the License.
     <!-- Require package javadoc -->
   <module name="JavadocPackage"/>
 
-  <!-- Miscellaneous other checks (checker).         -->
-  <!-- See http://checkstyle.sf.net/config_misc.html -->
-    <!-- Require files to end with newline characters -->
-  <module name="NewlineAtEndOfFile">
-    <property name="lineSeparator" value="lf"/>
-  </module>
-
-  <!-- Checks for whitespace (tree walker)                 -->
-  <!-- See http://checkstyle.sf.net/config_whitespace.html -->
-    <!-- No tabs allowed! -->
-  <module name="FileTabCharacter"/>
-
   <module name="TreeWalker">
     <property name="cacheFile" value="target/checkstyle-cachefile"/>