I use `--auto-correct` a lot, but `-ac` is suppose...
# detekt
c
I use
--auto-correct
a lot, but
-ac
is supposed to work also, but it doesn't. Just me? Worth filing a bug?
m
That is very weird. I just checked by adding a unit test and it works fine for 1.x and on main. What exactly are you passing as parameter?
c
I'm just running
./gradlew detekt -ac
which doesn't work, while
./gradlew detekt --auto-correct
does work. Let me get a response of what -ac actually responds with (on mobile right now)
but IIRC it essentially just shows the man/help page
m
Ah, you are using gradle. I only checked the cli. With the gradle plugin, only
--auto-correct
is supported. https://detekt.dev/docs/gettingstarted/gradle/#available-plugin-tasks
c
OOOH interesting. worth filing a feature request?
e
not possible, gradle only supports long options through https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/options/Option.html
c
oooh. TIL. thanks everyone!