From 2e084a4b2edf376acb0df9b3b746db3c314ee619 Mon Sep 17 00:00:00 2001 From: Anthony Oteri Date: Thu, 21 Sep 2023 13:43:05 -0400 Subject: [PATCH] Enable Clippy::Pedantic checks by default --- .github/workflows/rust-clippy.yml | 4 +++- src/main.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 5e9e5d9..f299c9f 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -40,7 +40,9 @@ jobs: cargo clippy --all-features --tests - --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt + --message-format=json + -- -D warnings + | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt continue-on-error: true - name: Upload analysis results ot GitHub diff --git a/src/main.rs b/src/main.rs index e14b877..8be0c86 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,6 +14,8 @@ * limitations under the License. */ +#![deny(clippy::pedantic)] + use std::ffi::OsString; use std::path::PathBuf;