Hey, is there a way to easily setup a gradle task ...
# detekt
a
Hey, is there a way to easily setup a gradle task to autoCorrect a single rule with Detekt ?
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 !
This is useful in case of formating rule adoption, that impacts more or less every project files.
a
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
--run-rule [RuleSet:Rule]
.