https://kotlinlang.org logo
#detekt
Title
# detekt
z

Zac Sweers

05/16/2022, 5:43 PM
how often is autocorrect implemented? I was surprised to see that
VarCouldBeVal
didn’t implement it for what seems like a trivial-ish change. In some quick testing, I don’t really see any other autocorrects kicking in when updating from 1.18 to 1.20
s

schalkms

05/16/2022, 8:33 PM
Autocorrect is only implemented for rules in the
formatting
rule set, which are wrapped from ktlint. Detekt's native rules don't support autocorrect.
☝️ 1
z

Zac Sweers

05/16/2022, 8:40 PM
ahhhh I misunderstood that, thanks
3 Views