Hey, is there a way to easily setup a gradle task to autoCorrect a single rule with Detekt ?
Anthony f
04/06/2020, 12:42 PM
I mean I can comment all the projet rule to just run the targeted one, but I would find convenient to update a gradle task to autocorrect it !
Anthony f
04/06/2020, 12:43 PM
This is useful in case of formating rule adoption, that impacts more or less every project files.
a
Artur Bosch
04/11/2020, 5:57 PM
Hey, the Gradle plugin does not support this.
However the cli does. You could try to add a custom Gradle task (https://detekt.github.io/gradletask.html) and use the cli argument