- A swallowed failure says why.
promise.catch(() => {}),.catch(() => null)and an emptycatch {}inapps/*/srcandpackages/*/srcnow carry the reason as a comment on the same line. Sixty-four sites had none; each has one, for exampleawait reader.cancel().catch(() => {}); // the stream may already be closed.scripts/swallowed-rejections.test.mjs(inpnpm test) fails on a new one without a reason. See conventions. (#251) - Every colour class in the web app is a token. Three check icons used
text-emerald-*; they usetext-success-foreground, which follows the theme and a rebrand.scripts/web-tokens.test.mjsrefuses a Tailwind palette class,white,blackand arbitrary colours inapps/web/srcoutside the lab pages and the Stageshow kit. See design patterns. (#251) - Comments carry no plan or review code. A comment such as "(R8)" or "review P1-1" meant something only during the round that produced it. Twelve comments were reworded to say what the code does, and
scripts/code-language.test.mjsnow reads comments for those codes. Documented rule ids (D3,W15) are unaffected. See conventions. (#251)
Swallowed failures say why, colours are tokens, comments drop plan codes
Three new tests: a discarded error needs a same-line reason, a colour class in the web app must be a token, and a comment may not cite a plan or review by its code. All existing sites are fixed.
Edit on GitHubDocumentation is in English.