Skip to content

Commit

Permalink
add spotless rules for Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Dec 5, 2023
1 parent fcabe1f commit 1605d49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,16 @@ if (enableSpotless.toBoolean()) {
//noinspection GroovyAssignabilityCheck
eclipse('4.19.0').configFile(formatFile)
}
kotlin {
target 'src/*/kotlin/**/*.kt'

toggleOffOn()
ktfmt('0.39')

trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
scala {
target 'src/*/scala/**/*.scala'
scalafmt('3.7.1')
Expand Down

0 comments on commit 1605d49

Please sign in to comment.