Add formatter rules for kts and misc files

This commit is contained in:
Wolf Montwe 2023-02-06 11:35:18 +01:00
parent 0d030aab6d
commit 11819232ea
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72

View file

@ -104,6 +104,13 @@ spotless {
targetExclude("**/build/", "**/resources/", "plugins/openpgp-api-lib/")
endWithNewline()
}
kotlinGradle {
ktlint(libs.versions.ktlint.get())
.setEditorConfigPath("$projectDir/.editorconfig")
target("**/*.gradle.kts")
targetExclude("**/build/")
endWithNewline()
}
format("markdown") {
prettier()
target("**/*.md")
@ -111,6 +118,12 @@ spotless {
trimTrailingWhitespace()
endWithNewline()
}
format("misc") {
target("**/*.gradle", "**/.gitignore")
trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
}
tasks.register('testsOnCi') {