mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 10:41:50 +01:00
46e734fc8e
* Migrate to multiplatform string resources * Move plurals translations into separate files * Fix lint check on generated files
23 lines
540 B
Plaintext
23 lines
540 B
Plaintext
import org.jlleitschuh.gradle.ktlint.KtlintExtension
|
|
import org.jlleitschuh.gradle.ktlint.KtlintPlugin
|
|
|
|
apply<KtlintPlugin>()
|
|
|
|
extensions.configure<KtlintExtension>("ktlint") {
|
|
version.set("0.50.0")
|
|
android.set(true)
|
|
enableExperimentalRules.set(true)
|
|
|
|
filter {
|
|
exclude("**/generated/**")
|
|
|
|
// For some reason this is needed for Kotlin MPP
|
|
exclude { tree ->
|
|
val path = tree.file.path
|
|
listOf("/generated/").any {
|
|
path.contains(it)
|
|
}
|
|
}
|
|
}
|
|
}
|