Exclude mirrored enforcement docs from style scan

This commit is contained in:
Mihaela Mihaljevic 2026-06-18 22:37:44 +02:00
parent ed38a76acd
commit 59b006cb72

View File

@ -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
}