ktlint-gradle icon indicating copy to clipboard operation
ktlint-gradle copied to clipboard

Why is the pre-commit git hook silent?

Open mobilekosmos opened this issue 2 years ago • 1 comments

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?

mobilekosmos avatar Mar 03 '23 05:03 mobilekosmos

🤷 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.

JLLeitschuh avatar Mar 04 '23 04:03 JLLeitschuh