chore(style): skip vendored yaml fixture corpora

Keep repo prose checks focused on authored files while preserving upstream fixture contents verbatim.
This commit is contained in:
Mihaela Mihaljevic 2026-06-06 08:25:03 +02:00
parent ca96772207
commit 7006d1eb52

View File

@ -21,6 +21,13 @@ is_enforcement_file() {
esac
}
is_vendored_fixture() {
case "$1" in
Tests/Fixtures/acme/*|Tests/Fixtures/real-yaml/*) return 0 ;;
*) return 1 ;;
esac
}
# Tool-attribution phrases. Assembled from fragments so this script does not
# contain the full literal phrases (which would self-flag in other scanners).
TOOL="Cla""ude"
@ -35,6 +42,9 @@ PHRASES=(
while IFS= read -r f; do
[ -f "$f" ] || continue
if is_vendored_fixture "$f"; then
continue
fi
if LC_ALL=C grep -qF -- "$EMDASH" "$f" 2>/dev/null; then
echo "style: em dash (U+2014) in $f" >&2
FAIL=1