(cherry picked from commit 5ae8095ef1ed2ae9f98486f9148e933c77a28692) # Conflicts: # .github/workflows/build_pull_request.yml # .github/workflows/build_push.yml
34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
import org.gradle.accessors.dm.LibrariesForLibs
|
|
|
|
plugins {
|
|
id("com.diffplug.spotless")
|
|
}
|
|
|
|
val libs = the<LibrariesForLibs>()
|
|
|
|
spotless {
|
|
kotlin {
|
|
target("**/*.kt", "**/*.kts")
|
|
targetExclude("**/build/**/*.kt")
|
|
ktlint(libs.ktlint.core.get().version)
|
|
.editorConfigOverride(mapOf(
|
|
"ktlint_function_naming_ignore_when_annotated_with" to "Composable",
|
|
"ktlint_standard_class-signature" to "disabled",
|
|
"ktlint_standard_discouraged-comment-location" to "disabled",
|
|
"ktlint_standard_function-expression-body" to "disabled",
|
|
"ktlint_standard_function-signature" to "disabled",
|
|
"ktlint_standard_max-line-length" to "disabled",
|
|
"ktlint_standard_type-argument-comment" to "disabled",
|
|
"ktlint_standard_value-argument-comment" to "disabled",
|
|
"ktlint_standard_value-parameter-comment" to "disabled",
|
|
))
|
|
trimTrailingWhitespace()
|
|
endWithNewline()
|
|
}
|
|
format("xml") {
|
|
target("**/*.xml")
|
|
targetExclude("**/build/**/*.xml")
|
|
trimTrailingWhitespace()
|
|
endWithNewline()
|
|
}
|
|
}
|