From 59b006cb7241dd65e3ee72c461a195acd4de5947 Mon Sep 17 00:00:00 2001 From: Mihaela Mihaljevic Date: Thu, 18 Jun 2026 22:37:44 +0200 Subject: [PATCH] Exclude mirrored enforcement docs from style scan --- scripts/check-style.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-style.sh b/scripts/check-style.sh index 4cc0bbb..1bc310a 100755 --- a/scripts/check-style.sh +++ b/scripts/check-style.sh @@ -16,7 +16,7 @@ EMDASH=$(printf '\xe2\x80\x94') # detect them, so exclude them from the phrase scan. is_enforcement_file() { case "$1" in - .githooks/*|scripts/check-style.sh|scripts/check-commit-attribution.sh) return 0 ;; + .githooks/*|scripts/check-style.sh|scripts/check-commit-attribution.sh|docs/rules/rules-swift/core/commits.md|docs/rules/rules-swift/core/git-discipline.md) return 0 ;; *) return 1 ;; esac }