Skip to content

review: one-line comment budget + modern-Go stragglers#121

Merged
CMGS merged 1 commit into
masterfrom
review/comment-budget
Jul 11, 2026
Merged

review: one-line comment budget + modern-Go stragglers#121
CMGS merged 1 commit into
masterfrom
review/comment-budget

Conversation

@CMGS

@CMGS CMGS commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Style normalization, no behavior change.

  • Enforce the one-line comment budget: multi-line justification narratives condensed to single-line WHY comments stating the constraint; step-narration comments ("First pass: ...", "URL-level idempotency check") deleted. Every kept comment still carries information the code cannot.
  • Modern-Go stragglers: slices.ContainsFunc in FilterUnreferenced, max(n, 1) in SplitRanges, folded the format-name collection loop in decompressKernel.

45 files, +88/−223. Gates: make lint 0 issues on linux+darwin, go build ./..., go test ./... all green.

Apply the hard comment budget (one-line godoc, one-line WHY) across 45
files: condense multi-line justification narratives, drop step-narration
comments. Replace three hand-rolled patterns with slices.ContainsFunc,
max(), and a folded name-collection loop. No behavior change.
@CMGS CMGS merged commit fd0c617 into master Jul 11, 2026
4 checks passed
@CMGS CMGS deleted the review/comment-budget branch July 11, 2026 06:21
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