`Exceeded max line length (120) (cannot be auto-co...
# ktlint
j
Exceeded max line length (120) (cannot be auto-corrected) (max-line-length)
Why can't line length be auto-corrected? IntelliJ auto-corrects it just fine. Any alternative settings or different tools that can do better?
s
the tl;dr; is that it's just difficult to do correctly in the way that ktlint currently works (which tends to work on local lint violations.) you can imagine having to do some sort of multi-pass linting because a rule might change spacing which makes the line now exceed the max length etc. i know facebook has written a kotlin pretty-printer, but i've never personally used it https://github.com/facebookincubator/ktfmt
🙏 1
1498 Views