Changed CI and default.json to run clippy

This commit is contained in:
Mikayla Maki 2022-08-10 09:11:06 -07:00 committed by K Simmons
parent ec015d4607
commit e7540d2833
2 changed files with 23 additions and 2 deletions

View File

@ -28,6 +28,7 @@ jobs:
run: | run: |
rustup set profile minimal rustup set profile minimal
rustup update stable rustup update stable
rustup component add clippy
rustup target add wasm32-wasi rustup target add wasm32-wasi
- name: Install Node - name: Install Node
@ -40,6 +41,9 @@ jobs:
with: with:
clean: false clean: false
- name: Run clippy
run: cargo clippy --workspace -- -D warnings
- name: Run tests - name: Run tests
run: cargo test --workspace --no-fail-fast run: cargo test --workspace --no-fail-fast

View File

@ -145,5 +145,22 @@
"tab_size": 2 "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"
}
}
}
}
} }