Skip to content

chore: strip remaining code comments and tighten comment scanner - #46

Merged
dhruvjainin merged 1 commit into
mainfrom
chore/ban-comments
Dec 3, 2026
Merged

dhruvjainin merged 1 commit into
mainfrom
chore/ban-comments

Conversation

@dhruvjainin

Copy link
Copy Markdown
Contributor

Removes the remaining 3 non-directive comments missed by scripts/check-comments.py after #37, and fixes the two scanner edge cases that hid them:

  • site/src/data/docs.ts: removed JSDoc comment hidden after backticks inside a regex literal (const fence = /^\s*(```|~~~)/).
  • deploy/aws/terraform/aws-hook.sh: removed 2 shell comment lines hidden after a quoted <<'SPAWNBOX_SETUP_END' inside echo.
  • scripts/check-comments.py:
    • Ignore quoted << tokens when detecting shell heredocs in scan_shell.
    • Skip regex literals in scan_ts_js so backticks or slashes inside regexes do not desynchronize string scanning.

Verification

  • python3 scripts/check-comments.py — passed (0 files remaining)
  • cargo fmt --all -- --check — passed
  • cargo check --workspace --all-targets --locked — passed
  • python3 -m py_compile on all .py files — passed
  • bash -n on all .sh files — passed

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying spawnbox with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5405a91
Status: ✅  Deploy successful!
Preview URL: https://4d5d469b.spawnbox-dww.pages.dev
Branch Preview URL: https://chore-ban-comments.spawnbox-dww.pages.dev

View logs

@dhruvjainin
dhruvjainin merged commit 649c812 into main Dec 3, 2026
7 checks passed
@dhruvjainin
dhruvjainin deleted the chore/ban-comments branch December 3, 2026 08:10
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