rust-lang / rust-lang/rust-clippy
Supporting deny instead of allow list for multiple_crate_versions
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Description
The use case would be to only deny multiple versions of specific crates, instead of for all crates.
You could do this by allowlisting all crates except the intended ones, but that may still lead to false positives when updating dependencies and those introduce new duplicate versions.
Version
Additional Labels
@rustbot label +C-enhancement
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation and configuration handling for the multiple_crate_versions lint, then inspect its existing tests. Define how users would specify crates to deny while leaving other crates unchecked, and add coverage showing that the selected crates are reported without false positives from newly introduced duplicate versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100