-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Lint level control #58
Comments
To clarify something, lints should have two "levels":
In that context, wonder if we should have "virtual reporting groups" based on severity levels, so you can say rustc has the concept of "virtual groups". These are lint groups that are made up of every lint that meets a qualification. So say you have a command-line like Granted, the |
Oh, interesting. I would have assumed that at the end of this command, When resolving this issue, we should check this edge case in rustc, match its behavior, and ensure we have tests to back this up. |
Its at least my supposition based on the vague descriptions I've seen about However, depending on the layers of abstraction and the CLI, this specific corner case might not matter (so long as |
I was assuming we'd eventually support both: |
Sometimes it's useful to be able to change the alert level of specific lints for a particular item or an entire module. Clippy and rustc lints have already stabilized syntax like
#[deny(lint_name)]
and#[allow(lint_name)]
, and our syntax choices would ideally be reasonably compatible with those.The kinds of controls we'd like to include are:
The lint level control adjustments should allow both raising and lowering the level of a given lint. For example:
The text was updated successfully, but these errors were encountered: