Hello, :wave: Does anyone knows if is possible to ...
# ktlint
o
Hello, 👋 Does anyone knows if is possible to run the auto-correct (
./gradlew ktlintFormat
) only in a selected file or package? Thank you 🙂
n
probably this works
Copy code
./gradlew ktlintFormat -PinternalKtlintGitFilter="$CHANGED_FILES"
o
yes, it really worked Thank you very much 😄
t
you could also setup filtering in Gradle (check
filter {}
section): https://github.com/JLLeitschuh/ktlint-gradle#configuration Regarding
-PinternalKtlintGitFilter
- it is intended only for internal usage and there are no guarantees on api stability.
👌 2
o
I’ll try that, thanks!