, meaning that all your projects need to be on the same ktlint version. Now you probably don't want to include the
ktlint
binary in every repo, but what about a Gradle-wrapper like script that downloads the ktlint binary?
Would that be something the repository might want to provide?
r
Rob Elliot
12/17/2020, 8:26 PM
Just out of interest, are you building with gradle? If so, what’s wrong with using one of the two gradle plugins’ tasks, which implicitly download the correct version of ktlint?
n
nhaarman
12/17/2020, 8:29 PM
We’ve seen that running ktlint in gradle is significantly slower than invoking the binary directly since gradle needs to configure everything
r
Rob Elliot
12/17/2020, 8:32 PM
Fair enough. On my project it takes between 1 & 3 seconds to run