nikolaymetchev
09/13/2023, 3:06 PMbuildSrc
directory? Ideally from within Gradle.ephemient
09/13/2023, 3:30 PMephemient
09/13/2023, 3:32 PMtasks.register<Detekt>("detektKotlinScripts") {
group = VERIFICATION_GROUP
description = "Run detekt analysis for Kotlin scripts"
source(files().apply { from(layout.projectDirectory.asFileTree.matching { include("*.kts") }) })
}
tasks.register("detektAll") { dependsOn(tasks.withType<Detekt>()) }
tasks.check { dependsOn(tasks.withType<Detekt>()) }
or whatever makes sense for your usagenikolaymetchev
09/15/2023, 9:56 AM