Skip to content

Commit 8206d6f

Browse files
hyperpolymathclaude
andcommitted
fix(.hypatia-ignore): use git ls-files quoted form for emoji paths
The previous .hypatia-ignore entries used literal UTF-8 emoji in the paths, but `git ls-files '*.res'` (used by the anti-pattern gate) returns these paths in core.quotepath form: surrounded by double-quotes with non-ASCII bytes escaped as \nnn octal. The gate's exact-match `grep -qxF` therefore did not match the literal-UTF8 entries. Update the 6 emoji-fixture entries to use the quoted/escaped form that `git ls-files` actually emits. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 328cc48 commit 8206d6f

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.hypatia-ignore

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
#
99
# Lines starting with `#` and blank lines are ignored.
1010
#
11+
# Note: paths must match the form emitted by `git ls-files`, which
12+
# quotes non-ASCII bytes with octal escapes by default (see
13+
# `core.quotepath`). Below, emoji directory names are encoded as the
14+
# literal "\nnn" octal sequences `git ls-files` produces, with the
15+
# surrounding double-quotes.
16+
#
1117
# ─── Vendored ReScript compiler test fixtures (rescript-ecosystem/) ─
1218
#
1319
# These 6 .res files are unicode-name test inputs for the upstream
@@ -18,9 +24,9 @@
1824
# project source. Removal would happen only if rescript-ecosystem/
1925
# is itself dropped from the vendor tree.
2026
#
21-
cicd_rules/banned_language_file:rescript-ecosystem/packages/core/compiler-source/tests/build_tests/unicode/src/📕annotation/a.res
22-
cicd_rules/banned_language_file:rescript-ecosystem/packages/core/compiler-source/tests/build_tests/unicode/src/📗block/b.res
23-
cicd_rules/banned_language_file:rescript-ecosystem/packages/core/compiler-source/tests/build_tests/unicode/src/📙inline/c.res
24-
cicd_rules/banned_language_file:rescript-ecosystem/rescript/tests/build_tests/unicode/src/📕annotation/a.res
25-
cicd_rules/banned_language_file:rescript-ecosystem/rescript/tests/build_tests/unicode/src/📗block/b.res
26-
cicd_rules/banned_language_file:rescript-ecosystem/rescript/tests/build_tests/unicode/src/📙inline/c.res
27+
cicd_rules/banned_language_file:"rescript-ecosystem/packages/core/compiler-source/tests/build_tests/unicode/src/\360\237\223\225annotation/a.res"
28+
cicd_rules/banned_language_file:"rescript-ecosystem/packages/core/compiler-source/tests/build_tests/unicode/src/\360\237\223\227block/b.res"
29+
cicd_rules/banned_language_file:"rescript-ecosystem/packages/core/compiler-source/tests/build_tests/unicode/src/\360\237\223\231inline/c.res"
30+
cicd_rules/banned_language_file:"rescript-ecosystem/rescript/tests/build_tests/unicode/src/\360\237\223\225annotation/a.res"
31+
cicd_rules/banned_language_file:"rescript-ecosystem/rescript/tests/build_tests/unicode/src/\360\237\223\227block/b.res"
32+
cicd_rules/banned_language_file:"rescript-ecosystem/rescript/tests/build_tests/unicode/src/\360\237\223\231inline/c.res"

0 commit comments

Comments
 (0)