mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-06 10:47:25 +01:00
Refrain from running spotless on weblate files
Those are akin to generated files and are likely to not follow our formatting
This commit is contained in:
parent
4051f180a2
commit
32d2c2ac1b
@ -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")
|
||||
@ -23,7 +35,7 @@ spotless {
|
||||
}
|
||||
format("xml") {
|
||||
target("**/*.xml")
|
||||
targetExclude("**/build/**/*.xml")
|
||||
targetExclude(*xmlFormatExclude)
|
||||
trimTrailingWhitespace()
|
||||
endWithNewline()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user