Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'docs/book/src/diagnostics.md')
-rw-r--r--docs/book/src/diagnostics.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/book/src/diagnostics.md b/docs/book/src/diagnostics.md
new file mode 100644
index 0000000000..60685c98da
--- /dev/null
+++ b/docs/book/src/diagnostics.md
@@ -0,0 +1,16 @@
+# Diagnostics
+
+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 diagnostics_generated.md:2:}}