From cfeec8a7050095529d2fefa3f4aa029b8e8dc789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sun, 12 Feb 2023 11:10:33 +0200 Subject: [PATCH] Add clippy configuration section to the manual --- docs/user/manual.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc index 82909ad790..fb9ecd2f8c 100644 --- a/docs/user/manual.adoc +++ b/docs/user/manual.adoc @@ -816,6 +816,10 @@ include::./generated_assists.adoc[] While most errors and warnings provided by rust-analyzer come from the `cargo check` integration, there's a growing number of diagnostics implemented using rust-analyzer's own analysis. Some of these diagnostics don't respect `\#[allow]` or `\#[deny]` attributes yet, but can be turned off using the `rust-analyzer.diagnostics.enable`, `rust-analyzer.diagnostics.experimental.enable` or `rust-analyzer.diagnostics.disabled` settings. +=== Clippy + +To run `cargo clippy` instead of `cargo check`, you can set `"rust-analyzer.check.command": "clippy"`. + include::./generated_diagnostic.adoc[] == Editor Features