-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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: |
Just checking: @epage do you consider this resolved with the lints table in If the former, I think we can close this issue. If the latter, we can leave it open, or split off the CLI work into a new issue and mark this one as completed. |
I've not seen any reference to virtual groups but that can be handled when someone runs into a need. |
Agreed. The most useful virtual group would be something like "minor lints", but everyone that wants that functionality is currently using |
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: