Changed CI and default.json to run clippy

This commit is contained in:
Mikayla Maki 2022-08-10 09:11:06 -07:00
parent c303c4e8f9
commit 3460a24da7
2 changed files with 23 additions and 2 deletions

View file

@ -28,6 +28,7 @@ jobs:
run: |
rustup set profile minimal
rustup update stable
rustup component add clippy
rustup target add wasm32-wasi
- name: Install Node
@ -39,7 +40,10 @@ jobs:
uses: actions/checkout@v2
with:
clean: false
- name: Run clippy
run: cargo clippy
- name: Run tests
run: cargo test --workspace --no-fail-fast

View file

@ -145,5 +145,22 @@
"tab_size": 2
}
},
"lsp": {}
//LSP Specific settings.
"lsp": {
//Specify the LSP name as a key here.
//As of 8/10/22, supported LSPs are:
//pyright
//gopls
//rust-analyzer
//typescript-language-server
//vscode-json-languageserver
"rust_analyzer": {
//These initialization options are merged into Zed's defaults
"initialization_options": {
"checkOnSave": {
"command": "clippy"
}
}
}
}
}