-
Notifications
You must be signed in to change notification settings - Fork 245
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
add option to return not 0 status code if any issues found #27
Comments
@bekinin I feel that it would be weird to return non-zero error status if command successfully completes the job it was meant to do. Do you have a more exact suggestion on how could it work? Also, what about using some unix magic for the job? Something with exit $(pronto run | wc -l) |
@mmozuras here is my usage scenario, which I want to implement with pronto.
So, all works for me now except failing CI build on pronto run. Yes, I can use workaround and some unix magic, but that's force me to run pronto twice, one time for github comments and second time to fail CI build with wc, which is not good. So, I was thinking on some option in github mode, which would set result code as amount of issues found, similar to rails_best_practices gem |
+1 on this request for the exact same reasons as stated by @bekinin. Maybe make it a command line option? |
With it, pronto exits with non-zero code if there were any warnings/errors. Resolves #27
Released |
I am using pronto in CI and I miss one feature to mark build as failed if any issues found in pronto run.
So, it would be great to add some command, which would set status code as not zero, if any issues found, so that CI would fail the build.
The text was updated successfully, but these errors were encountered: