Add/ci enable clippy (#1509)
* fix(clippy): clippy fixes * add(ci): enable clippy warnings * chore(fmt): cargo fmt * disable: failing clippy action Add `cargo make clippy` in ci
This commit is contained in:
parent
6186578178
commit
3ccc1f3946
2 changed files with 8 additions and 6 deletions
12
.github/workflows/rust.yml
vendored
12
.github/workflows/rust.yml
vendored
|
|
@ -72,8 +72,10 @@ jobs:
|
||||||
~/.cargo/git
|
~/.cargo/git
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: Check Lints
|
- name: Check clippy lints
|
||||||
uses: actions-rs/clippy-check@v1
|
run: cargo make clippy
|
||||||
with:
|
# - name: Check Lints
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
# uses: actions-rs/clippy-check@v1
|
||||||
args: --all-features --all-targets
|
# with:
|
||||||
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# args: --all-features --all-targets --deny warnings
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ args = [
|
||||||
|
|
||||||
# Simple clippy tweak
|
# Simple clippy tweak
|
||||||
[tasks.clippy]
|
[tasks.clippy]
|
||||||
args = ["clippy", "--all-targets","--all-features","--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
|
args = ["clippy", "--all-targets","--all-features","--","--deny","warnings", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
|
||||||
|
|
||||||
# Release building and installing Zellij
|
# Release building and installing Zellij
|
||||||
[tasks.install]
|
[tasks.install]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue