From 746913946d2ba0874f69dfb3fcc4c8d1dc3b9f19 Mon Sep 17 00:00:00 2001 From: Mitchell Gale Date: Mon, 31 Jul 2023 14:06:05 -0700 Subject: [PATCH] Removing checkstyle test for core and added spotless for relevant directories. Signed-off-by: Mitchell Gale --- build.gradle | 12 +++++++----- core/build.gradle | 3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index ff29eb7687..f34cdaf980 100644 --- a/build.gradle +++ b/build.gradle @@ -83,10 +83,12 @@ repositories { // Spotless checks will be added as PRs are applied to resolve each style issue is approved. spotless { java { -// target fileTree('.') { -// include '**/*.java', 'src/*/java/**/*.java' -// exclude '**/build/**', '**/build-*/**' -// } + target fileTree('.') { + include 'core/src/main/java/org/opensearch/sql/analysis/*.java', + 'core/src/test/java/org/opensearch/sql/data/*.java', + 'core/src/test/java/org/opensearch/sql/datasource/*.java' + exclude '**/build/**', '**/build-*/**' + } // importOrder() // licenseHeader("/*\n" + // " * Copyright OpenSearch Contributors\n" + @@ -95,7 +97,7 @@ spotless { // removeUnusedImports() // trimTrailingWhitespace() // endWithNewline() -// googleJavaFormat('1.17.0').reflowLongStrings().groupArtifact('com.google.googlejavaformat:google-java-format') + googleJavaFormat('1.17.0').reflowLongStrings().groupArtifact('com.google.googlejavaformat:google-java-format') } } diff --git a/core/build.gradle b/core/build.gradle index 8205638138..89fac623f2 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -34,6 +34,9 @@ repositories { mavenCentral() } +checkstyleMain.ignoreFailures = true +checkstyleTest.ignoreFailures = true + pitest { targetClasses = ['org.opensearch.sql.*'] pitestVersion = '1.9.0'