all: reformat code

Simultaniously reformat code using ktlint and ktfmt.
This commit is contained in:
Alexander Capehart
2022-09-08 21:04:51 -06:00
parent 28d28287fe
commit 09823d7829
55 changed files with 385 additions and 236 deletions
+8 -1
View File
@@ -120,7 +120,14 @@ dependencies {
spotless {
kotlin {
target "src/**/*.kt"
ktfmt("0.37").dropboxStyle()
// ktlint does checking, while ktfmt actually does formatting
ktlint()
ktfmt().dropboxStyle()
licenseHeaderFile("NOTICE")
}
}
afterEvaluate {
preDebugBuild.dependsOn spotlessApply
}