-
Notifications
You must be signed in to change notification settings - Fork 49
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
Integration with pre-commit(.com) #332
Comments
Generally I think the I understand some people have concerns that if they have both ktlint and the gradle plugin in their dev environment they will drift to different versions. Would it makes sense if kotlinter-gradle just packaged the CLI Main class within the plugin and people could write a JavaExec task to invoke it? |
Works for me. |
Any update on this pls? |
Not yet I'm afraid, but open to contributions. |
Hi there,
I was trying to write a simple
pre-commit-config.yaml
like soHowever, since pre-commit.com passes the changed files to
./gradlew formatKotlin
it fails withI have seen #207 and #155 but I was still unsure how to resolve. I considered using https://github.com/macisamuele/language-formatters-pre-commit-hooks/blob/f5149294026e063cf1b9e28670e43ee5c624d2f9/.pre-commit-hooks.yaml#L25-L30 but was worried that klint would fall out of sync with kolinter.
Please advise
The text was updated successfully, but these errors were encountered: