Hey! Is it possible to run ktlint only on a given set of files? Eg: Something like `./gradlew ktlint...
g
Hey! Is it possible to run ktlint only on a given set of files? Eg: Something like
./gradlew ktlint {list of files}
?
Context: I want to write a pre-receive git hook which runs ktlint task on all the changed files (only the changed files) and fail if the task fails.
a
I got it from this plugin, that had it as a helper task: https://github.com/JLLeitschuh/ktlint-gradle#additional-helper-tasks
👍 2
g
You sir, saved me today! Thanks
1757 Views