cargo-clippy: add lint group example (#13279)

This commit is contained in:
Nicolas Kosinski
2024-07-19 13:52:56 +02:00
committed by GitHub
parent 8a71e81aa7
commit 2d824e7bd6

View File

@@ -19,6 +19,10 @@
`cargo clippy --package {{package}}` `cargo clippy --package {{package}}`
- Run checks for a lint group (see <https://rust-lang.github.io/rust-clippy/stable/index.html#?groups=cargo,complexity,correctness,deprecated,nursery,pedantic,perf,restriction,style,suspicious>):
`cargo clippy -- --warn clippy::{{lint_group}}`
- Treat warnings as errors: - Treat warnings as errors:
`cargo clippy -- --deny warnings` `cargo clippy -- --deny warnings`