Skip to content

Commit

Permalink
ci: run clippy on the whole workspace (#1014)
Browse files Browse the repository at this point in the history
Add `--workspace` flag
  • Loading branch information
Hofer-Julian authored Aug 12, 2024
1 parent bdcd89d commit 14eb289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
reporter: "github-pr-check"
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: "--all-targets"
clippy_flags: "--all-targets --workspace"

build:
name: Build ${{ matrix.target }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ repos:
- id: clippy
name: clippy
description: Checks a package to catch common mistakes and improve your Rust code.
entry: cargo clippy --all-targets --color always
entry: cargo clippy --all-targets --workspace --color always
language: system
pass_filenames: false

0 comments on commit 14eb289

Please sign in to comment.