komikku/buildSrc/src/main/kotlin/tachiyomi.lint.gradle.kts

22 lines
637 B
Text
Raw Normal View History

import org.jmailen.gradle.kotlinter.KotlinterExtension
import org.jmailen.gradle.kotlinter.KotlinterPlugin
apply<KotlinterPlugin>()
extensions.configure<KotlinterExtension>("kotlinter") {
experimentalRules = true
disabledRules = arrayOf(
"experimental:argument-list-wrapping", // Doesn't play well with Android Studio
"filename", // Often broken to give a more general name
2023-02-07 22:50:09 +01:00
"experimental:comment-wrapping" // Doesn't play nice with SY specifiers
)
}
tasks {
named<DefaultTask>("preBuild").configure {
if (!System.getenv("CI").toBoolean())
dependsOn("formatKotlin")
}
}