https://kotlinlang.org logo
#ktlint
Title
# ktlint
d

David Corrado

02/15/2023, 7:31 PM
I added ktlint to this example project(https://github.com/DavidCorrado/ktlintExample/commit/3ce45aaeb316d055994b517c22d315ea7b28a617). I might be understanding things wrong but my understanding was if I use in editorconfig
ktlint_code_style = android
I dont need
ktlint {
android.set(true)
}
If I remove android.set above and run app:ktlintCheck I get trailing-comma-on-call-site,trailing-comma-on-declaration-site violations Which I think are nonandroid rules Not sure what is going on here
w

wakingrufus

02/15/2023, 9:58 PM
can you open an issue on github for this please in the ktlint-gradle project? i think we are adding the android key to the user data no matter what, and maybe if you don't explicitly set it, we should also not, and let ktlint do its thing (like read from editorconfig or whatever
i can look into it
it would also help me if you had an example code snippet that failed regular ktlint, but passes with android ktlint
d

David Corrado

03/09/2023, 4:31 AM
Sorry for the long delay. Doing it now!
8 Views