From b85050a3b4377ca46800a50845138ed0bb60cd79 Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Sun, 15 Nov 2026 12:26:25 -0500 Subject: [PATCH] refactor(review): Name the YAML quoting checks in the list lint Co-Authored-By: Claude Opus 5.5 --- scripts/review-lists.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/review-lists.ts b/scripts/review-lists.ts index 2fd3eab16ae..e03abf23e3a 100644 --- a/scripts/review-lists.ts +++ b/scripts/review-lists.ts @@ -148,7 +148,9 @@ function readList(file: string): Entry[] { } const value = itemMatch[1]; const quoted = value.match(/^"(.*)"$/) ?? value.match(/^'(.*)'$/); - if (!quoted && (value.startsWith("*") || /\s#|:\s/.test(value))) { + const startsWithWildcard = value.startsWith("*"); + const containsYamlSyntax = /\s#|:\s/.test(value); + if (!quoted && (startsWithWildcard || containsYamlSyntax)) { errors.push(`${file}:${line} quote '${value}'. YAML reads it differently unquoted.`); return; }