Any favourites / suggestions for Ktlint gradle plu...
# ktlint
p
d
I usually create my own task to run it manually.
e
I've found it much faster to skip gradle entirely when it comes to ktlint and I copy this script across my projects https://github.com/eygraber/uri-kmp/blob/master/format You lose the up to date check but it runs so fast that it doesn't really matter to me.
I don't use custom rules but I have a vague plan to support that
p
That's surprising to me. I would say gradle caching would be beneficial, especially in multi module project
l
We’re using
org.jlleitschuh.gradle.ktlint
. I make no claim that’s the best one, just what was already here when I started. 🙂
j
Spotless
w
ktlint-gradle is the best. Source: I am a maintainer of ktlint-gradle :p
🤔 1
l
sorry to make this thread alive 😛 , for the ones using
ktlint-gradle
, has anyone updated to latest version and
ktlint
>
1.0.0
? because the filter for staged files has stopped working for me, and the only change was the version upgrade
w
Have you opened an issue in the ktlint-gradle github yet?
l
no, i didn't have too much time to investigate and i didn't want to create an issue without taking a deeper look