From 94457e5f90b7b27661b9cad063af740e2d54a493 Mon Sep 17 00:00:00 2001 From: Alex Shelkovnykov Date: Sat, 20 May 2023 18:47:04 +0000 Subject: [PATCH] build: add targets to linter --- .github/workflows/ares-shared.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ares-shared.yml b/.github/workflows/ares-shared.yml index e34d757..d9f3a7e 100644 --- a/.github/workflows/ares-shared.yml +++ b/.github/workflows/ares-shared.yml @@ -17,8 +17,18 @@ jobs: - name: Format run: cargo fmt --check + # See clippy linter docs: https://github.com/rust-lang/rust-clippy + # + # First linter is set to fail for all warnings, then ignored warnings explicitly + # are explicitly listed + # - name: Lint - run: cargo clippy -- --deny warnings --allow clippy::missing_safety_doc + run: | + cargo clippy \ + --all-targets \ + --no-deps \ + -- -D warnings \ + -A clippy::missing_safety_doc - name: Build run: cargo build --verbose