From 276fcb1468094aa0e3de1f922bb9ca6841e6cea0 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Wed, 29 Jan 2025 15:49:01 -0500 Subject: [PATCH] chore: Make sure clippy checks entire workspace --- Earthfile | 10 +++++----- bacon.toml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Earthfile b/Earthfile index c282345..4829f42 100644 --- a/Earthfile +++ b/Earthfile @@ -35,11 +35,11 @@ prebuild: lint: FROM +common - RUN cargo fmt --check - DO rust+CARGO --args="clippy" - DO rust+CARGO --args="clippy --all-features" - DO rust+CARGO --args="clippy --no-default-features" - DO +EACH_PACKAGE --args="clippy --no-default-features" + RUN cargo fmt --all --check + DO rust+CARGO --args="clippy --workspace" + DO rust+CARGO --args="clippy --workspace --all-features" + DO rust+CARGO --args="clippy --workspace --no-default-features" + DO +EACH_PACKAGE --args="clippy --workspace --no-default-features" test: FROM +common diff --git a/bacon.toml b/bacon.toml index 7b9b9d9..fc70d59 100644 --- a/bacon.toml +++ b/bacon.toml @@ -21,7 +21,7 @@ watch = ["src", "process", "recipe", "template", "utils", "Cargo.toml", "build.r [jobs.clippy] command = [ - "cargo", "clippy", + "cargo", "clippy", "--workspace", "--color", "always", ] need_stdout = false @@ -30,7 +30,7 @@ watch = ["src", "process", "recipe", "template", "utils", "Cargo.toml", "build.r [jobs.clippy-all] command = [ - "cargo", "clippy", + "cargo", "clippy", "--workspace", "--all-features", "--color", "always", ]