#!/usr/bin/env bash set -euo pipefail STRICT=0 if [[ "${1:-}" == "--strict" ]]; then STRICT=1 fi ROOT="$(git rev-parse --show-toplevel)" cd "$ROOT" report() { local title="$1" local pattern="$2" shift 2 local matches matches="$(rg -n "$pattern" "$@" --glob '!**/*.test.*' || true)" echo "=== $title ===" if [[ -z "$matches" ]]; then echo "ok: no matches" return 0 fi echo "$matches" echo return 1 } failures=0 report "Raw interactive controls" '&2 exit 1 fi echo "UI drift audit completed with $failures non-empty category/categories."