Skip to content

Commit d3e21fe

Browse files
committed
Auto merge of #5371 - matthiaskrgr:rdm, r=phansch
readme: explain how to run only a single lint on a codebase changelog: none
2 parents 513b467 + b0de238 commit d3e21fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ Note that this is still experimental and only supported on the nightly channel:
9090
cargo fix -Z unstable-options --clippy
9191
```
9292

93+
#### Running only a single lint
94+
95+
If you care only about the warnings of a single lint and want to ignore everything else, you
96+
can first deny all the clippy lints and then explicitly enable the lint(s) you care about:
97+
````
98+
cargo clippy -- -Aclippy::all -Wclippy::useless_format
99+
````
100+
93101
### Running Clippy from the command line without installing it
94102

95103
To have cargo compile your crate with Clippy without Clippy installation

0 commit comments

Comments
 (0)