Skip to content

Commit

Permalink
Merge pull request #43 from syxc/kotlin-2.0
Browse files Browse the repository at this point in the history
Update spotless.gradle
  • Loading branch information
syxc authored Jul 4, 2024
2 parents 41fd426 + 68f9c51 commit 8f16076
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions spotless/spotless.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ def ktlintVersion = "1.3.1"

spotless {
java {
target '**/*.java'
target("**/*.java")
targetExclude("**/build/**/*.java", "${rootProject.rootDir}/spotless/**")
toggleOffOn('@formatter:off', '@formatter:on')
toggleOffOn("@formatter:off", "@formatter:on")
importOrder()
removeUnusedImports()
trimTrailingWhitespace()
endWithNewline()
// https://github.com/palantir/palantir-java-format
palantirJavaFormat("2.47.0").style("GOOGLE").formatJavadoc(true)
removeUnusedImports()
formatAnnotations()
}

kotlin {
target "**/*.kt"
target("**/*.kt")
targetExclude("**/build/**/*.kt", "${rootProject.rootDir}/spotless/**")
ktlint(ktlintVersion).setEditorConfigPath(
"${rootProject.rootDir}/.editorconfig"
Expand Down

0 comments on commit 8f16076

Please sign in to comment.