From 591650d786d5d41bc450a412a55a00637ffe89d4 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Thu, 19 Nov 2026 14:59:16 -0800 Subject: [PATCH 1/3] Vue kit: the view scan forbids any hand-written button, glyph, checkbox or range viewControls.test.mjs now reads every SFC outside the kit for a raw ';")); + assert.ok( + !sees(STRING_MARKUP, "''".replace('', '')), + ); + + const sources = scriptSources(); + assert.ok( + sources.some(({ file }) => file === 'src/ui/views/panels/ChatPanel.vue'), + ); const found = []; - for (const file of scriptFiles()) { - const relative = path.relative(REPO_ROOT, file).split(path.sep).join('/'); - const source = readFileSync(file, 'utf8'); - source.split('\n').forEach((line, index) => { - if (SCRIPT_CONTROL.test(line) || SCRIPT_GLYPH.test(line)) - found.push(`${relative}:${index + 1}: ${line.trim()}`); - }); + for (const { file, source } of sources) { + found.push( + ...hits(file, source, SCRIPT_CONTROL), + ...hits(file, source, SCRIPT_GLYPH), + ); + if (!STRING_MARKUP_PAGES.has(file)) + found.push(...hits(file, uncommented(source), STRING_MARKUP)); } assert.deepEqual(found, []); + for (const file of STRING_MARKUP_PAGES) { + const page = sources.find((s) => s.file === file); + assert.ok( + page && hits(file, page.source, STRING_MARKUP).length, + `${file} no longer writes markup`, + ); + } });