Skip to content

Audit e2e/ and playwright.config.ts comments (#225 Phase 2)#244

Merged
kui merged 1 commit into
masterfrom
audit-e2e-playwright-comments
Jul 12, 2026
Merged

Audit e2e/ and playwright.config.ts comments (#225 Phase 2)#244
kui merged 1 commit into
masterfrom
audit-e2e-playwright-comments

Conversation

@kui

@kui kui commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Summary

Phase 2 for #225: audit all of e2e/ and playwright.config.ts (3 files, 25 flagged comments). Drops the 3 corresponding entries from EXCLUDED_PATHS and removes the now-empty exclusion mechanism entirely.

Coverage

  • e2e/index.spec.ts (18) — Deleted self-evident comments (Prefab list is populated., Map name input reflects the selection., step labels like Apply the "trader" prefab-filter preset.). Converted design-rationale comments to WHY: markers: async select population by LabelHandler, bundled-map async population, MutationObserver latch rationale, cold-worker timeout, canvas dimension derivation, long-task isolation from load overhead, threshold tolerances for CI variance, clipboard spy motivation. Collapsed multi-line observer explanation into a single block WHY:.

  • e2e/prefabs.spec.ts (6) — Deleted self-evident Wait for at least one filtered result.. Converted worker-poll and UrlState-debounce comments to WHY:. Collapsed 7-line XSS regression explanation into a single block WHY: covering the inability to plant malicious prefabs and the <mark> verification strategy.

  • playwright.config.ts (1) — Moved the workers rationale (bundled-map load size, server contention) from inline line comments to JSDoc.

  • tools/lint-plugins/require-comment-rationale.ts & test — Removed the empty EXCLUDED_PATHS array, isExcludedFile helper, and its import in the test file, along with the now-obsolete "skips files matching excluded path substrings" test case. shouldPreserve is no longer exported.

Style

Single-clause WHY: markers using so / because / since for causation. No ;, , or colon-elaboration in prose. JSDoc bodies split into short sentences with period.

Test plan

  • deno task ci:lint passes
  • deno task ci:fmt-check passes
  • deno task ci:type-check passes
  • deno task test — 41 tests / 240 steps pass

Progress

EXCLUDED_PATHS: 3 → deleted. The entire codebase is now audited and the exclusion ratchet is removed.

- e2e/index.spec.ts: delete self-evident comments, convert rationale to WHY:
- e2e/prefabs.spec.ts: delete self-evident comments, convert rationale to WHY:
- playwright.config.ts: move workers rationale to JSDoc
- Remove empty EXCLUDED_PATHS and isExcludedFile from lint plugin
@kui
kui merged commit 8d2978e into master Jul 12, 2026
2 checks passed
@kui
kui deleted the audit-e2e-playwright-comments branch July 12, 2026 08:13
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