-
Notifications
You must be signed in to change notification settings - Fork 50
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
Task formatKotlin should not fail build if it can fix problems #335
Comments
Good point, although when format did something the workspace is dirty and some CI flow might need to detect that with a distinct exit result. We have |
I would find this particularly useful for interactive use. Our projects take a couple of minutes to build, and I cannot count the number of times I have started a build with I thought I would remedy this with an alias: |
I believe with the new properties this might work for you: kotlinter {
ignoreFormatFailures = false
} Then |
When running
gradle formatKotlin
, the build fails if any issues are found. However, I think it would be better if the task would not fail if the formatter could fix the problems it finds: after all, after the successful formatting the code is actually fixed.The text was updated successfully, but these errors were encountered: