Closed Eightyplus closed 10 months ago
Solved it by extracting setup to gradle file 😢
apply(from = rootProject.file("kotliner.gradle"))
subprojects {
apply plugin: "org.jmailen.kotlinter"
kotlinter {
ignoreFailures = false
reporters = ['checkstyle', 'plain', 'html']
disabledRules = ['trailing-comma-on-call-site', 'trailing-comma-on-declaration-site']
}
}
found yet another solution 🤦
subprojects {
apply(plugin = "org.jmailen.kotlinter")
configure<KotlinterExtension> {
ignoreFailures = false
reporters = arrayOf("checkstyle", "plain", "html")
disabledRules = arrayOf("trailing-comma-on-call-site", "trailing-comma-on-declaration-site")
}
}
I'm converting some build files in Grovy to KTS, and somehow the
kotliner
configuration does not work forsubproject
. It worked in Grovy. Is it still possible to do this or do I need to move this into every module build script?