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

Anthony f

09/06/2019, 7:21 AM
@gammax yes
So do you mean that every formating rules own an autocorrect mecanism ?
g

gammax

09/06/2019, 12:18 PM
Every formatting rule is basically a wrap over a ktLint rule. This means that you can specify
autoCorrect
for then and ktLint will try to autocorrect those issue. Please note that NOT ALL the rules in the
formatting
group supports autoCorrect (that’s a limitation of ktLint). IIRC for example
NoWildcardImports
doesn’t support autoCorrect as ktLint is not able to fix this issue.