Skip to content
Docs
Changelog

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.

Markdown

  • A swallowed failure says why. promise.catch(() => {}), .catch(() => null) and an empty catch {} in apps/*/src and packages/*/src now carry the reason as a comment on the same line. Sixty-four sites had none; each has one, for example await reader.cancel().catch(() => {}); // the stream may already be closed. scripts/swallowed-rejections.test.mjs (in pnpm 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 use text-success-foreground, which follows the theme and a rebrand. scripts/web-tokens.test.mjs refuses a Tailwind palette class, white, black and arbitrary colours in apps/web/src outside 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.mjs now reads comments for those codes. Documented rule ids (D3, W15) are unaffected. See conventions. (#251)
Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.