mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Changed CI and default.json to run clippy
This commit is contained in:
parent
c303c4e8f9
commit
3460a24da7
2 changed files with 23 additions and 2 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue