You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR overhauls how lint groups work within Cargo, aligning them with
how Clippy handles groups[^1], all while simplifying the implementation
(in my opinion). The first commit adds eight lint groups that mirror
[Clippy's
groups](https://github.com/rust-lang/rust-clippy?tab=readme-ov-file#clippy),
while the subsequent commits work towards matching how Clippy handles
groups, as well as improving how lint groups work within the existing
linting system.
The major changes:
- Lints now have a primary group, instead of a set of groups they belong
to
- Lints now inherit their default level from their primary group
- This vastly improved the code for getting the level for a lint
- Surprisingly, I found this change helped with deciding what group a
lint should belong to
Note: Dynamic groups (i.e., `all` or `warnings`) aren't supported at
this time
Note: There are open questions about which `Level` we should default the
groups to. This PR does not attempt to answer those questions and simply
uses Clippy's default levels for convenience.
[^1]: Clippy uses groups and categories interchangeably
0 commit comments