Nerfed `clippy` in GitHub Workflows, now the linting must pass otherwise the pipeline fails

pull/51/head
Meliurwen 2 years ago
parent eb0cf6e88d
commit fd335d73f6
  1. 2
      .github/workflows/build.yml
  2. 10
      README.md

@ -26,7 +26,7 @@ jobs:
uses: actions-rs/clippy-check@v1 uses: actions-rs/clippy-check@v1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features args: --all-targets -- -D warnings -A clippy::all -W clippy::correctness
- name: Tests (test) - name: Tests (test)
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:

@ -37,8 +37,14 @@ To launch **tests**:
cargo test cargo test
``` ```
To **lint**: To **lint** with `cargo check`:
```sh ```sh
cargo check cargo check --all-targets
```
Or with `clippy`:
```sh
cargo clippy --all-targets -- -A clippy::all -W clippy::correctness
``` ```

Loading…
Cancel
Save