mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-15 23:12:48 +01:00
21 lines
557 B
Plaintext
21 lines
557 B
Plaintext
|
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
|
||
|
)
|
||
|
}
|
||
|
|
||
|
tasks {
|
||
|
named<DefaultTask>("preBuild").configure {
|
||
|
if (!System.getenv("CI").toBoolean())
|
||
|
dependsOn("formatKotlin")
|
||
|
}
|
||
|
}
|