File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -90,14 +90,6 @@ Note that this is still experimental and only supported on the nightly channel:
90
90
cargo fix -Z unstable-options --clippy
91
91
```
92
92
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
-
101
93
### Running Clippy from the command line without installing it
102
94
103
95
To have cargo compile your crate with Clippy without Clippy installation
@@ -183,6 +175,8 @@ If you do not want to include your lint levels in your code, you can globally en
183
175
flags to Clippy during the run: ` cargo clippy -- -A clippy::lint_name ` will run Clippy with ` lint_name ` disabled and
184
176
` cargo clippy -- -W clippy::lint_name ` will run it with that enabled. This also works with lint groups. For example you
185
177
can run Clippy with warnings for all lints enabled: ` cargo clippy -- -W clippy::pedantic `
178
+ If you care only about a single lint, you can allow all others and then explicitly reenable
179
+ the lint(s) you are interested in: ` cargo clippy -- -Aclippy::all -Wclippy::useless_format -Wclippy::... `
186
180
187
181
## Contributing
188
182
You can’t perform that action at this time.
0 commit comments