Skip to content

Commit

Permalink
add recipe for clippy to justfile (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit authored May 29, 2024
2 parents 4238bd8 + ce7fdef commit 2316c78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@
cargo-clippy = {
enable = true;
description = "Run clippy";
entry =
"cargo clippy --workspace --all-features --all-targets -- -D warnings";
entry = "just clippy";
types_or = [ "rust" "toml" ];
pass_filenames = false;
};
Expand Down
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ test:
cargo build --bin diff-test --release
cargo test --release --all-features

clippy:
cargo clippy --workspace --all-features --all-targets -- -D warnings

# Helpful shortcuts for local development
dev-orchestrator:
target/release/orchestrator -p 8080 -n 1
Expand Down

0 comments on commit 2316c78

Please sign in to comment.