ktlint-gradle
ktlint-gradle copied to clipboard
Why is the pre-commit git hook silent?
The generated pre-commit git hook includes this line:
./gradlew --quiet ktlintCheck -PinternalKtlintGitFilter="$CHANGED_FILES"
Why does this run by default quiet and is it possible to configure this while running gradlew addKtlintCheckGitPreCommitHook?
🤷 Personally, I never thought that this plugin should have a dedicated pre-commit feature. I figured that should be left to some other plugin to support. For example: https://github.com/DanySK/gradle-pre-commit-git-hooks
I'm not wedded to any of the decisions around the pre-commit hook, and you're welcome to PR a change to make it more configurable for your use case.