From 7006d1eb52032f97d36a6ce6a1fdf24010fb420e Mon Sep 17 00:00:00 2001 From: Mihaela Mihaljevic Date: Sat, 6 Jun 2026 08:25:03 +0200 Subject: [PATCH] chore(style): skip vendored yaml fixture corpora Keep repo prose checks focused on authored files while preserving upstream fixture contents verbatim. --- scripts/check-style.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/check-style.sh b/scripts/check-style.sh index b5db278..99ef97f 100755 --- a/scripts/check-style.sh +++ b/scripts/check-style.sh @@ -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