-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 691 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (19 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Local quality gate — mirrors .github/workflows/ci.yml so you can run the exact
# same checks before pushing. `make gate` must be green for CI to pass.
.PHONY: gate fmt clippy deny audit test fix
# The full gate: formatting, lints, license/advisory/ban checks, vuln audit, tests.
gate: fmt clippy deny audit test
fmt:
cargo fmt --all -- --check
clippy:
cargo clippy --workspace --all-targets --locked -- -D warnings
deny:
cargo deny check
audit:
cargo audit
test:
cargo test --workspace --locked
# Auto-fix what can be fixed (formatting + machine-applicable clippy suggestions).
fix:
cargo fmt --all
cargo clippy --workspace --all-targets --fix --allow-dirty --allow-staged