From 3460a24da703749f5eb5a5a6087e81cb0b1b61e6 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 10 Aug 2022 09:11:06 -0700 Subject: [PATCH] Changed CI and default.json to run clippy --- .github/workflows/ci.yml | 6 +++++- assets/settings/default.json | 19 ++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e596fad9bd..ac20fdc3ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/assets/settings/default.json b/assets/settings/default.json index 33eb64e201..9cf915d1a6 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -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" + } + } + } + } }