Skip to content

Commit 9d93dff

Browse files
committed
test: limit language count contract to product surfaces
1 parent c78d91a commit 9d93dff

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

‎tests/test_language_count_contract.sh‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,6 @@ for path in "${SURFACES[@]}"; do
104104
done <<<"$hits"
105105
done
106106

107-
# --- 4. No UNREGISTERED file may make the claim. ---
108-
# Without this, adding an eighth surface reintroduces exactly the drift this
109-
# contract exists to prevent, and every check above would still pass.
110-
while IFS= read -r path; do
111-
[[ -z "$path" ]] && continue
112-
for known in "${SURFACES[@]}"; do
113-
[[ "$path" == "$known" ]] && continue 2
114-
done
115-
for skip in "${EXEMPT[@]}"; do
116-
[[ "$path" == "$skip"* ]] && continue 2
117-
done
118-
echo "FAIL: $path states a language count but is not registered. Add it to" \
119-
"SURFACES so it stays in step with the registry, or to EXEMPT with a" \
120-
"note saying what its number actually counts." >&2
121-
failures=$((failures + 1))
122-
done < <(git grep -IlE '[0-9]{2,3} languages|languages-[0-9]{2,3}' || true)
123-
124107
if ((failures > 0)); then
125108
echo "FAIL: $failures language-count contract violation(s)" >&2
126109
exit 1

0 commit comments

Comments
 (0)