You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The CLI parameter --android can be omitted when the .editorconfig property ktlint_code_style = android is defined"
I added ktlint to this example project(DavidCorrado/ktlintExample@3ce45aa). I might be understanding things wrong but my understanding was if I use in editorconfig
From the docs for ktlint. ktlint_code_style in your editorconfig should be all you need to set for android rule set
"The CLI parameter --android can be omitted when the .editorconfig property ktlint_code_style = android is defined"
I added ktlint to this example project(DavidCorrado/ktlintExample@3ce45aa). I might be understanding things wrong but my understanding was if I use in editorconfig
I dont need
You should be able to reproduce android rule set being ran here by running app:ktlintCheck
https://github.com/DavidCorrado/ktlintExample
Then if you comment out the android.set here
https://github.com/DavidCorrado/ktlintExample/blob/main/app/build.gradle#L68
You will see that you get trailing-comma-on-call-site,trailing-comma-on-declaration-site violations. Which I think are nonandroid rules
Convo in kotlin slack
https://kotlinlang.slack.com/archives/CKS3XG0LS/p1676489483257549
The text was updated successfully, but these errors were encountered: