Refrain from running spotless on weblate files

Those are akin to generated files and are likely to not follow our formatting

(cherry picked from commit 32d2c2ac1bc224cbda2f09a4023d7d120ea0e954)
This commit is contained in:
AntsyLich 2024-10-13 23:02:35 +06:00 committed by Cuong-Tran
parent 494fd0129c
commit a92d228a1b
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -6,6 +6,18 @@ plugins {
val libs = the<LibrariesForLibs>()
val xmlFormatExclude = buildList(2) {
add("**/build/**/*.xml")
projectDir
.resolve("src/commonMain/moko-resources")
.takeIf { it.isDirectory }
?.let(::fileTree)
?.matching { exclude("/base/**") }
?.let(::add)
}
.toTypedArray()
spotless {
kotlin {
target("**/*.kt", "**/*.kts")
@ -27,7 +39,7 @@ spotless {
}
format("xml") {
target("**/*.xml")
targetExclude("**/build/**/*.xml")
targetExclude(*xmlFormatExclude)
trimTrailingWhitespace()
endWithNewline()
}