cargo-clippy: add lint group example (#13279)
This commit is contained in:
@@ -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`
|
||||||
|
Reference in New Issue
Block a user