Skip to content

Commit b8aea35

Browse files
committed
Ignore on failure for checkstyle in core and added the four spotless fixes files.
Signed-off-by: Mitchell Gale <[email protected]>
1 parent 991b045 commit b8aea35

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ repositories {
8383
// Spotless checks will be added as PRs are applied to resolve each style issue is approved.
8484
spotless {
8585
java {
86-
// target fileTree('.') {
87-
// include '**/*.java', 'src/*/java/**/*.java'
88-
// exclude '**/build/**', '**/build-*/**'
89-
// }
86+
target fileTree('.') {
87+
include 'core/src/main/java/org/opensearch/sql/monitor/*.java',
88+
'core/src/main/java/org/opensearch/sql/expression/*.java',
89+
'core/src/main/java/org/opensearch/sql/executor/*.java'
90+
'core/src/main/java/org/opensearch/sql/exception/*.java'
91+
exclude '**/build/**', '**/build-*/**'
92+
}
9093
// importOrder()
9194
// licenseHeader("/*\n" +
9295
// " * Copyright OpenSearch Contributors\n" +
@@ -95,7 +98,7 @@ spotless {
9598
// removeUnusedImports()
9699
// trimTrailingWhitespace()
97100
// endWithNewline()
98-
// googleJavaFormat('1.17.0').reflowLongStrings().groupArtifact('com.google.googlejavaformat:google-java-format')
101+
googleJavaFormat('1.17.0').reflowLongStrings().groupArtifact('com.google.googlejavaformat:google-java-format')
99102
}
100103
}
101104

core/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ repositories {
3434
mavenCentral()
3535
}
3636

37+
checkstyleTest.ignoreFailures = true
38+
checkstyleMain.ignoreFailures = true
39+
3740
pitest {
3841
targetClasses = ['org.opensearch.sql.*']
3942
pitestVersion = '1.9.0'

0 commit comments

Comments
 (0)