Skip to content

style: remove redundant comments across the codebase (cleanup sweep)#1737

Merged
datlechin merged 3 commits into
mainfrom
refactor/remove-redundant-comments-sweep
Jun 20, 2026
Merged

style: remove redundant comments across the codebase (cleanup sweep)#1737
datlechin merged 3 commits into
mainfrom
refactor/remove-redundant-comments-sweep

Conversation

@datlechin

Copy link
Copy Markdown
Member

Removes 439 // comments that only restate the adjacent code (e.g. // Split into lines above a components(separatedBy:), // Increment counter, // Handle column count mismatch), across 110 files. This is the broad pass following batch 1 (#1736).

Safety

The change is comment-only. Verified mechanically, not by eye:

  • After stripping all comments and blank lines, the code in every changed file is byte-identical to main (0 mismatches across 110 files). No code line was added, moved, or altered.
  • No /// doc comment, // MARK: marker, file header, or // swiftlint: directive was removed.
  • The 20 insertions are trailing inline-comment strips (code // note becomes code).

What was kept on purpose

1,977 comments were reviewed and left in place: anything documenting a non-obvious why, an invariant or ordering requirement, a workaround or footgun, a binary/wire format (ASN.1/PKCS layouts in BigQuery auth), or a step that makes a tricky parser or state machine followable. The keep-to-remove ratio (1977:439) reflects that most comments here carry real information.

No CHANGELOG: internal, no user-facing change. Happy to split this into per-area PRs (Core / Views / Plugins) if you'd prefer smaller reviews.

@datlechin datlechin merged commit d97ce9d into main Jun 20, 2026
3 of 4 checks passed
@datlechin datlechin deleted the refactor/remove-redundant-comments-sweep branch June 20, 2026 05:46
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