mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Add clippy configuration section to the manual
This commit is contained in:
parent
c29a00457a
commit
cfeec8a705
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
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.
|
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[]
|
include::./generated_diagnostic.adoc[]
|
||||||
|
|
||||||
== Editor Features
|
== Editor Features
|
||||||
|
|
Loading…
Reference in a new issue