chore(code-clean): lint directives, guarded cd, hook regex split, helper extractions

A1 drop unused `import gzip`; B1/B2 file-level shellcheck directives
placed before `set -u`; B3 `cd "$REPO" || exit 1`; B4 hook regex split
into `pattern+=` lines (sha256 of $pattern unchanged); B11
`_build_parser`/`_dispatch` pulled out of google_seo `_cli`; B20
detect-plugins header names update-all.sh; C2 prune-memory deterministic
suite wired into SUITES (literal path); C3 `_refuse_outside_allowlist`
moved up in deploy-commit.

No behavior change except B3 (a failed cd now exits 1) and C2 (one more
suite). B5/B7/B9/B18/B19 land in the refactor commit.
This commit is contained in:
bchanot committed 2026-10-12 22:51:28 +02:00
1 parent d08929d0e8
commit 381ed9fa5d
10 files changed
+80 -56

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
# Deterministic tests for the seo-data engine (no network, no venv).
# shellcheck disable=SC2015 # A && ok || no is deliberate (ok/no never fail)
set -u
REPO="$(cd "$(dirname "$0")/../.." && pwd)"
SD="$REPO/lib/seo-data"