This message was deleted.
# kotlin-dsl
s
This message was deleted.
v
You cannot "call" a task. Also why should you? Just have the two tasks and no
detektBase
Copy code
val detektCheck by tasks.registering(Detekt::class) {
    autoCorrect = false
}

val detektApply by tasks.registering(Detekt::class) {
    autoCorrect = true
}

configure(listOf(detektCheck, detektApply)) {
    configure {
        // common config
    }
}
i
Exactly what I need. Thx for the clarification. 🙏 BTW This always confuses me. I guess this is programmer thing to "call" the methods rather than writing piece of code that is required (executed) by another piece of code ;-)
👌 1