-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Wrong return code on nil diagnostics #129
Comments
Hey there, just stumbled on this randomly, and I'm also the author of the code you're referring to. It's in fact the wanted behaviour we ended up deciding for in this discussion - gist:
I did in fact, forget to update the help/documentation I had changed before 😅 If the help would explain the current behaviour correctly, would it still be an issue for you? |
Issue oxalica#129 Alternative PR to oxalica#135
Hey! Thanks for your reply. It's good enough for me and I understand your point of view. My only concern is trust in the output to check something (i.e. if it has warnings, some output will be printed) :/ But as you discussed, having the option to say that warnings are errors is the best. |
I was surprised to notice that my git pre-commit hooks do not complain about warnings. |
Workaround: |
When I run
nil diagnostics <file-name>
on a file with only warnings the help util says:But when there are only warnings it returns 0.
The bug might be in this piece of code
The text was updated successfully, but these errors were encountered: