Skip to content
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

Fix nil diagnostics exit code #125

Closed
wants to merge 1 commit into from

Conversation

9999years
Copy link

nil diagnostics --help states:

Exit with non-zero code if there are any diagnostics. (1 for errors,
2 if only warnings)

In practice, nil would only exit with code 1 if there were errors, and if warnings were present it would exit with code 0.

`nil diagnostics --help` states:

> Exit with non-zero code if there are any diagnostics. (`1` for errors,
> `2` if only warnings)

In practice, `nil` would only exit with code 1 if there were errors, and
if warnings were present it would exit with code 0.
@oxalica
Copy link
Owner

oxalica commented May 30, 2024

Close in favor of #136, whose semantic is more correct to me.

@oxalica oxalica closed this May 30, 2024
@9999years
Copy link
Author

But... I want to fail if there's any warnings. Can we add a --deny-warnings option or similar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants