-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make VS Code rust-analyzer run
just clippy
(#238)
This commit changes the VS Code settings so that rust-analyzer will run the `just clippy` command instead of `cargo clippy` when running checks. Because the `just clippy` command will check all crates in the workspace, not just the default members, this means VS Code users will get clippy warnings/errors for *all* crates in the workspace, even the ones that can't be checked as part of a global `cargo clippy --workspace` command. This should substantially improve the dev experience for VS Code users. This change required adding an optional trailing `ARGS` argument to the `just clippy` recipe so that additional args can be passed to Clippy (in this case `--message-format=json --quiet --all-targets`, to mimic the way `rust-analyzer` normally invokes `cargo check`).
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters