Skip to content

fix(test): master is red — retire the iframe allowlist entry #388 made stale - #398

Merged
PathGao merged 1 commit into
sftwrdotdev:masterfrom
PathGao:fix/stale-iframe-allowlist
Aug 2, 2026
Merged

fix(test): master is red — retire the iframe allowlist entry #388 made stale#398
PathGao merged 1 commit into
sftwrdotdev:masterfrom
PathGao:fix/stale-iframe-allowlist

Conversation

@PathGao

@PathGao PathGao commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

master currently fails npm test:

✖ every rule keeps at least one live implementation
  rule "YouTube links never become embedded frames" matches nothing in src

This is my mistake, and the mechanism is worth naming. #397 shipped that rule with one allowlist entry covering replaceWithYoutubeEmbed in MarkdownViewer.svelte — an uncalled pre-fix leftover it could not delete, because #388 owned that file. Its comment said to delete the copy and the entry together. #388 deleted the copy; the entry stayed.

#397's CI was green before #388 landed, and it merged without re-running against the newer base. A green measured on an older base is not a green for the merge.

The rule was always meant to be "allowed nowhere" — that is now literally true, so the entry goes and the rule joins the other nowhere-rule, which the meta-test correctly skips. The rule now guards the whole tree instead of all-but-one file.

npm test       401 / 401
npm run check  432 files, 0 errors, 0 warnings

…e stale

sftwrdotdev#397 shipped the "YouTube links never become embedded frames" rule with
one allowlist entry for `replaceWithYoutubeEmbed` in
MarkdownViewer.svelte, an uncalled pre-fix leftover it could not delete
because sftwrdotdev#388 owned that file. Its comment said to delete the copy and
the entry together. sftwrdotdev#388 deleted the copy; the entry stayed, so the
marker now matches nothing and the meta-test that catches stale rules
fires - correctly.

The rule was always meant to be "allowed nowhere", which is now true.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@PathGao
PathGao merged commit 78e3158 into sftwrdotdev:master Aug 2, 2026
4 checks passed
@PathGao
PathGao deleted the fix/stale-iframe-allowlist branch August 2, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant