Skip to content

Commit

Permalink
chore: Make sure clippy checks entire workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Jan 29, 2025
1 parent b41ba22 commit 276fcb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions bacon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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",
]
Expand Down

0 comments on commit 276fcb1

Please sign in to comment.