โ ๏ธ Is your feature request related to a problem? Please describe
The ktlint-gradle plugin has a set of helper tasks. Two notable ones are addKtlintCheckGitPreCommitHook and addKtlintFormatGitPreCommitHook. These tasks make it easy to set up a Git pre-commit hook that runs ktfmt against the changed files when committing changes. I am looking to migrate my team's project from ktlint to ktfmt but many of the devs on the team rely on the pre-commit hook that gets created specifically from the addKtlintFormatGitPreCommitHook task.
๐ก Describe the solution you'd like
It would be great if this plugin would provide helper tasks similar to addKtlintCheckGitPreCommitHook and addKtlintFormatGitPreCommitHook. For my team's specific needs, we only care about the latter.
๐ค Do you want to develop this feature yourself?
โ ๏ธ Is your feature request related to a problem? Please describe
The ktlint-gradle plugin has a set of helper tasks. Two notable ones are
addKtlintCheckGitPreCommitHook
andaddKtlintFormatGitPreCommitHook
. These tasks make it easy to set up a Git pre-commit hook that runsktfmt
against the changed files when committing changes. I am looking to migrate my team's project from ktlint to ktfmt but many of the devs on the team rely on the pre-commit hook that gets created specifically from theaddKtlintFormatGitPreCommitHook
task.๐ก Describe the solution you'd like
It would be great if this plugin would provide helper tasks similar to
addKtlintCheckGitPreCommitHook
andaddKtlintFormatGitPreCommitHook
. For my team's specific needs, we only care about the latter.๐ค Do you want to develop this feature yourself?