From c1929710537b02498e6a75233e457c2f1c6635da Mon Sep 17 00:00:00 2001 From: Phil Larson Date: Sun, 23 Aug 2026 18:59:37 -0700 Subject: [PATCH] fix: remove irregular whitespace from lint gate (#3518) ## Summary - replace a zero-width space in the comment-assertion gate documentation - restore the clean-main ESLint gate without changing scanner behavior ## Test plan - `node scripts/check-no-comment-assertions-in-tests.mjs` - `pnpm exec eslint scripts/check-no-comment-assertions-in-tests.mjs` - `pnpm check:changesets` - `pnpm lint` ## Summary by CodeRabbit * **Documentation** * Clarified the explanation for a narrowly scoped test-checking exception. * No runtime behavior or user-facing functionality changed. --- scripts/check-no-comment-assertions-in-tests.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-no-comment-assertions-in-tests.mjs b/scripts/check-no-comment-assertions-in-tests.mjs index ffdac5c7d2..febe66ca7e 100644 --- a/scripts/check-no-comment-assertions-in-tests.mjs +++ b/scripts/check-no-comment-assertions-in-tests.mjs @@ -29,8 +29,8 @@ const TEST_FILE_PATTERN = /\.test\.(?:ts|tsx|mts|cts|mjs|cjs|js|jsx)$/; /* An assertion matcher applied to a string carrying an FNXC stamp. -DELIBERATELY NARROW: an earlier draft also flagged `/*` and `*​/` as comment delimiters and produced -24 false positives and zero true ones - every hit was a path glob or a legitimate pattern +DELIBERATELY NARROW: an earlier draft also flagged opening and closing block-comment delimiters and +produced 24 false positives and zero true ones - every hit was a path glob or a legitimate pattern assertion, which a regex cannot tell apart from comment prose. Comment prose is not reliably distinguishable from data by regex, so this check enforces the one unambiguous, observed case and the standing rule in AGENTS.md covers the rest for human and agent reviewers.