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

pull/28/head
Nicolas Kosinski 2024-07-19 13:52:56 +02:00 committed by GitHub
parent 8a71e81aa7
commit 2d824e7bd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@
`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:
`cargo clippy -- --deny warnings`