这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@9999years
Copy link
Contributor

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
Contributor 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