# detekt


03/04/2024, 4:59 PM
I saw that autocorrect won't be able to be used with detekt 2.0 because of how the compiler plugins work, but will it be possible to run detekt in a mode where autocorrect could be used?

Brais Gabin

03/04/2024, 5:32 PM
On 2.0 you will be able to execute it as a gradle task or as a compiler plugin (exactly the same as right now).
But I must say that I'm not a huge fan of the current implementation of autocorrect on detekt. I would like detekt to generate patch files and then a task to apply them. This way even the compiler plugin would be able to autocorrect.
💡 1
But as far as I know there is nothing on that regard. Autocorrect is really low in the priorities right now.
thank you color 1