-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Always fail task on Ktlint crash #229
Comments
@tasomaniac could it happen that you have enabled val ignoreFailures: Property<Boolean> = objectFactory.property { set(false) } |
Hmm actually I did and then I have another task of myself that evaluates the I wonder if there is a way to differentiate I'm not sure if this is technically possible but would be good to differentiate these two scenarios. |
I doubt that it will be possible, but will try to investigate. |
I can also have a look if you agree that it's a good idea |
Feel free to do it. I think it is a good idea to fail the build on ktlint crash when |
Is this still an issue? Has it been resolved? |
I believe this is technically still an issue. But not sure how important it is. One way to solve this would be to create an xml report and include the execution issues as errors there. I think Android Lint does that. |
Are you able to create a demo or, even better, a unit test that demonstrates this issue? |
I've noticed that while running any of the
KtlintCheck
tasks, if running ktlint executable fails, the task is not marked as failure.Here is an example with incompatibility with Kotlin 1.3.30
The exception is recorded, ktlint actually does not run, but the task is marked as success.
The text was updated successfully, but these errors were encountered: