Does LineLength Have AutoCorrect? #4049
-
Detekt is not auto correcting line length for me running it through gradle. My build.gradle is set up with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Which rule are you referring to specifically? Detekt has two that you might refer to:
|
Beta Was this translation helpful? Give feedback.
-
I have MaximumLineLength in my detekt-config.yml - running ./gradlew detekt points out the errors, but doesn't fix them
build.gradle
Just to make sure autocorrect was getting picked up, I ensured that autocorrected (it did)
|
Beta Was this translation helpful? Give feedback.
Which rule are you referring to specifically? Detekt has two that you might refer to:
MaxLineLength
which does NOT haveautoCorrect
support.MaximumLineLength
(a rule fromdetekt-formatting
) which hasautoCorrect
support