Skip to content

review: an own-line Go comment starts uppercase - #421

Merged
CMGS merged 1 commit into
review/post-417from
review/comment-case
Nov 2, 2026
Merged

CMGS merged 1 commit into
review/post-417from
review/comment-case

Conversation

@CMGS

@CMGS CMGS commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

/code sets a comment's case by its position: an own-line comment starts uppercase like godoc, and a trailing one starts lowercase. Production Go had drifted. This commit capitalizes the first letter of the 126 own-line comments that break it.

It changes only that letter: a script checks that every changed line differs from the old one by case alone. A comment that names the declaration below it (// conns tracks…) and a product name (cocoon, silkd) keep their case, because godoc starts with the name. e2e/ is left out.

Stacked on #420.

Hot path: none, comments only.

Gates: go build on the three modules touched, go vet on pool and egress, and gofmt -l are clean. CI runs the rest.

/code sets the case by position: own-line uppercase like godoc, trailing lowercase. Comments only: a comment naming the declaration below it, and a product name, keep their case. e2e is left out.
@CMGS
CMGS merged commit a5c7e7f into review/post-417 Nov 2, 2026
1 check passed
@CMGS
CMGS deleted the review/comment-case branch November 2, 2026 17:32
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