Remove terminal overlay static contract CI check

This commit is contained in:
Lawrence Chen 2026-02-22 16:18:03 -08:00
parent f366fb0b00
commit 8cbb7ea119
2 changed files with 0 additions and 45 deletions

View file

@ -7,15 +7,6 @@ on:
pull_request:
jobs:
terminal-overlay-contract:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enforce terminal overlay layering contract
run: ./scripts/check-terminal-overlay-layering.sh
web-typecheck:
runs-on: ubuntu-latest
defaults:

View file

@ -1,36 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
allowed_a="Sources/Find/SurfaceSearchOverlay.swift"
allowed_b="Sources/GhosttyTerminalView.swift"
pattern='SurfaceSearchOverlay[[:space:]]*\('
if command -v rg >/dev/null 2>&1; then
matches="$(
rg -n --no-heading --glob '*.swift' "$pattern" Sources cmuxTests \
| grep -v "^${allowed_a}:" \
| grep -v "^${allowed_b}:" \
|| true
)"
else
matches="$(
grep -RIn --include='*.swift' -E "$pattern" Sources cmuxTests \
| grep -v "^${allowed_a}:" \
| grep -v "^${allowed_b}:" \
|| true
)"
fi
if [[ -n "$matches" ]]; then
echo "Terminal overlay layering contract violation:"
echo "SurfaceSearchOverlay may only be instantiated in:"
echo " - ${allowed_a}"
echo " - ${allowed_b}"
echo
echo "$matches"
exit 1
fi
echo "OK: terminal overlay layering contract satisfied."