rust-lang / rust-lang/rust-clippy
`--tests` is not listed in the clippy options
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
Description
@yozhgoor and I discovered that the --tests option exists but is not listed in any of these commands:
cargo clippy --help,cargo clippy -- --help,clippy-driver --help.
Being able to lint on tests is an awesome feature IMO. I think it deserves to be listed in the --help output.
Version
rustc 1.59.0-nightly (48a5999fc 2021-12-01)
binary: rustc
commit-hash: 48a5999fceeea84a8971634355287faa349909d4
commit-date: 2021-12-01
host: x86_64-unknown-linux-gnu
release: 1.59.0-nightly
LLVM version: 13.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.
Research direction
Start by running cargo clippy --help, cargo clippy -- --help, and clippy-driver --help, then trace where these help messages are defined. Update the relevant help output to list the existing --tests option and rerun all three commands to confirm it appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100