mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-29 00:49:31 +00:00
- quality_gate_strict.sh: add `cd` to repo root so the script works when invoked from any working directory. - deny.toml: change `wildcards = "allow"` to `"deny"` to catch `*` version requirements in dependencies. Co-Authored-By: Claude Opus 4.6 <[email protected]>
22 lines
517 B
Bash
Executable File
22 lines
517 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Ensure we are running from the repository root
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
|
|
echo "==> fmt check"
|
|
cargo fmt --all -- --check
|
|
|
|
echo "==> clippy (all warnings)"
|
|
cargo clippy --locked --all --benches --tests --examples --all-features -- -D warnings
|
|
|
|
echo "==> cargo deny"
|
|
if ! command -v cargo-deny &>/dev/null; then
|
|
echo "ERROR: cargo-deny not installed (install with: cargo install cargo-deny)"
|
|
exit 1
|
|
fi
|
|
cargo deny check
|
|
|
|
echo "==> tests"
|
|
cargo test --locked
|