mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 21:43:45 +03:00
Try to run clippy just for a single target
This commit is contained in:
parent
e0dd5a5820
commit
1200f595a3
36
.github/actions/check_style/action.yml
vendored
36
.github/actions/check_style/action.yml
vendored
@ -2,23 +2,23 @@ name: "Check formatting"
|
|||||||
description: "Checks code formatting use cargo fmt"
|
description: "Checks code formatting use cargo fmt"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
shell: bash -euxo pipefail {0}
|
shell: bash -euxo pipefail {0}
|
||||||
run: |
|
run: |
|
||||||
rustup set profile minimal
|
rustup set profile minimal
|
||||||
rustup update stable
|
rustup update stable
|
||||||
rustup component add clippy
|
rustup component add clippy
|
||||||
|
|
||||||
- name: cargo fmt
|
- name: cargo fmt
|
||||||
shell: bash -euxo pipefail {0}
|
shell: bash -euxo pipefail {0}
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
- name: cargo clippy
|
- name: cargo clippy
|
||||||
shell: bash -euxo pipefail {0}
|
shell: bash -euxo pipefail {0}
|
||||||
# clippy.toml is not currently supporting specifying allowed lints
|
# clippy.toml is not currently supporting specifying allowed lints
|
||||||
# so specify those here, and disable the rest until Zed's workspace
|
# so specify those here, and disable the rest until Zed's workspace
|
||||||
# will have more fixes & suppression for the standard lint set
|
# will have more fixes & suppression for the standard lint set
|
||||||
run: |
|
run: |
|
||||||
CARGO_LOG=debug cargo -vvv clippy --workspace --all-targets --all-features -- -A clippy::all -D clippy::dbg_macro -D clippy::todo
|
CARGO_LOG=debug cargo -vvv clippy --workspace --all-features -- -A clippy::all -D clippy::dbg_macro -D clippy::todo
|
||||||
|
Loading…
Reference in New Issue
Block a user