rust-lang / rust-lang/rust-clippy

Supporting deny instead of allow list for multiple_crate_versions

Open
#17,442 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-ui C-enhancement T-cargo
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.