Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper task that creates pre-commit hook that runs ktfmtFormat #268

Open
1 of 2 tasks
mhernand40 opened this issue Mar 13, 2024 · 1 comment
Open
1 of 2 tasks

Helper task that creates pre-commit hook that runs ktfmtFormat #268

mhernand40 opened this issue Mar 13, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@mhernand40
Copy link

⚠️ 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?

  • Yes
  • No
@cortinico
Copy link
Owner

cortinico commented Mar 13, 2024

Happy to receive a PR that adds this support 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants