rust-lang / rust-lang/rust-clippy
`cargo-clippy` doesn't seem to support `--exclude` option like `check`
Open
@SpriteOvO is already working on this.
Since Sep 21, 2024.
C-bug
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Summary
Calling command on repository with [workspace] in root's Cargo.toml:
cargo-clippy --workspace --all-targets --all-features --exclude some-crate -- -D warnings -A clippy::needless_borrow -A clippy::unnecessary_to_owned
ends up with following error message:
error: --exclude can only be used together with --workspace
which contradicts what the command says.
I really need exclusion to work as I have one package where I cannot use --all-features.
Reproducer
No Rust code specific to reproduce, just workspace is required.
Version
rustc 1.65.0-nightly (c2804e6ec 2022-09-07)
binary: rustc
commit-hash: c2804e6ec2c29a5c7368600ea173b890e2655c3d
commit-date: 2022-09-07
host: x86_64-unknown-linux-gnu
release: 1.65.0-nightly
LLVM version: 15.0.0
Additional Labels
No response
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.
Assessment
This issue has not been assessed yet.