From 2d824e7bd6266296306c3ceebc2352a36e6014a6 Mon Sep 17 00:00:00 2001 From: Nicolas Kosinski Date: Fri, 19 Jul 2024 13:52:56 +0200 Subject: [PATCH] cargo-clippy: add lint group example (#13279) --- pages/common/cargo-clippy.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/cargo-clippy.md b/pages/common/cargo-clippy.md index ca361ed62..aa8846f86 100644 --- a/pages/common/cargo-clippy.md +++ b/pages/common/cargo-clippy.md @@ -19,6 +19,10 @@ `cargo clippy --package {{package}}` +- Run checks for a lint group (see ): + +`cargo clippy -- --warn clippy::{{lint_group}}` + - Treat warnings as errors: `cargo clippy -- --deny warnings`