Skip to content

chore: remove explanatory comments across the repo - #7653

Merged
benjaminshafii merged 2 commits into
devfrom
chore/no-comments
Nov 21, 2026
Merged

benjaminshafii merged 2 commits into
devfrom
chore/no-comments

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

Removes explanatory comments from TypeScript across apps, packages and ee, so the code matches the no-comments rule.

What problem does it solve?

Comments drift from the code they describe and agents copy them as a pattern. With the new rule only checking added lines, the existing ones would stay forever.

What was the situation before?

About 30,700 comments across 2,840 files, many restating the next line or narrating history.

How is this implemented?

  • A one-off script deleted every comment the no-new-comment rule rejects, using the TypeScript scanner, and cleaned up the blank lines and empty JSX {} they left.
  • Kept: directives (@ts-*, eslint, biome, prettier, webpack, coverage), #__PURE__/#region, license headers, issue and RFC links, and /** docs on exported package APIs.
  • Tests, .d.ts and generated files are untouched.

What else changed?

none

Release note

none

Evidence

No E2E; no behavior change. Every changed file parses with no new errors, all 47 package typechecks and pnpm check pass, and package tests match dev (the only failures also fail on dev).

Delete about 30,700 comments from 2,840 TypeScript files in apps, packages and
ee. Kept: directives (@ts-*, eslint, biome, prettier, webpack, coverage),
build annotations (#__PURE__, #region), license headers, issue and RFC
links, and doc comments on exported package APIs. Tests, declarations and
generated files are untouched.

No new parse errors; every package typechecks.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: c4629db
Status: ✅  Deploy successful!
Preview URL: https://82e6b595.openwork.pages.dev
Branch Preview URL: https://chore-no-comments.openwork.pages.dev

View logs

@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Nov 21, 2026 12:56am UTC
openwork-den Ready Ready Preview Nov 21, 2026 12:56am UTC
1 Skipped Deployment
Project Deployment Actions Updated
openwork-landing Ignored Ignored Preview Nov 21, 2026 12:56am UTC

Request Review

# Conflicts:
#	apps/app/src/react-app/shell/session-route.tsx
#	ee/apps/den-web/app/(den)/dashboard/_components/inference-providers-screen.tsx
#	packages/headless-threads/src/client.ts
@benjaminshafii
benjaminshafii merged commit d8c864e into dev Nov 21, 2026
17 of 19 checks passed

This branch was successfully deployed

3 active (1 outdated) deployments
Preview – openwork-den — 7e2a4401 Deployed Nov 21, 2026 by vercel[bot]
Preview – openwork-app — 7e2a4401 Deployed Nov 21, 2026 by vercel[bot]
Preview – openwork-landing — c4629dbe Deployed Nov 21, 2026 by vercel[bot]
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