Hi Everyone, does anyone know how to make android studio recognize ktlint errors and reformat according to ktlint?
I’ve tried running
ktlint --apply-to-idea-project
but i’ve not seen any difference
I want the behavihour I get from the unnoficial ktlint android studio plugin but without installing it.
Is this posible?
How do you integrate ktlint in your workflow? I feel that running
ktlint
manually and seeing the errors and warnings in the console is cumbersome. I would much prefer to see it in the android studio warnings as shown in the screenshot.
r
romtsn
11/19/2021, 5:00 PM
nope, it's not possible without the AS plugin unfortunately
romtsn
11/19/2021, 5:00 PM
usually people use it on CI as linter, and locally as formatter, so running ktlint, e.g. as a pre-commit hook feels rather smooth