huskies: merge 980

This commit is contained in:
dave
2026-05-13 14:38:55 +00:00
parent 246f44d8f3
commit 14a39b6205
5 changed files with 167 additions and 6 deletions
+15 -6
View File
@@ -1,8 +1,17 @@
#!/usr/bin/env bash
# Fast compile-only check + doc-coverage check on changed files.
# Use this for rapid iteration feedback while writing code.
# Catches the doc-coverage gate failures locally instead of waiting for
# the merge gate to bounce on a single missing `///`.
# Pre-commit quality gate: fmt-check, clippy, cargo check, and doc-coverage.
# Run this before committing to catch fmt drift, clippy warnings, compile
# errors, and missing doc comments without waiting for the full test suite.
set -euo pipefail
cargo check --tests --workspace
cargo run -p source-map-gen --bin source-map-check -- --worktree . --base master
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
echo "=== Checking Rust formatting ==="
cargo fmt --manifest-path "$PROJECT_ROOT/Cargo.toml" --all --check
echo "=== Running cargo clippy ==="
cargo clippy --manifest-path "$PROJECT_ROOT/Cargo.toml" --workspace --all-targets -- -D warnings
echo "=== Checking doc coverage on changed files ==="
cargo run --manifest-path "$PROJECT_ROOT/Cargo.toml" -p source-map-gen --bin source-map-check --quiet -- --worktree "$PROJECT_ROOT" --base master