From fd335d73f6ffaa9272ba47f3ad642e59bcc4b4b0 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Fri, 29 Jul 2022 16:26:57 +0200 Subject: [PATCH] Nerfed `clippy` in GitHub Workflows, now the linting must pass otherwise the pipeline fails --- .github/workflows/build.yml | 2 +- README.md | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f73a77..25ecf35 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + args: --all-targets -- -D warnings -A clippy::all -W clippy::correctness - name: Tests (test) uses: actions-rs/cargo@v1 with: diff --git a/README.md b/README.md index 36009cf..b114188 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,14 @@ To launch **tests**: cargo test ``` -To **lint**: +To **lint** with `cargo check`: ```sh -cargo check +cargo check --all-targets +``` + +Or with `clippy`: + +```sh +cargo clippy --all-targets -- -A clippy::all -W clippy::correctness ``` -- 2.36.3