Skip to content

review: batch-end quality round#3

Merged
CMGS merged 2 commits into
mainfrom
review/audit-2026-07-23
Jul 23, 2026
Merged

review: batch-end quality round#3
CMGS merged 2 commits into
mainfrom
review/audit-2026-07-23

Conversation

@CMGS

@CMGS CMGS commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Batch-end quality round: style walkthrough, comment budget, and simplify lenses.

Changed

  • admission/server.go: handleHealthz and handleReadyz shared their entire body; both now call a single writeOK helper.
  • metrics/metrics.go: dropped a const-group label comment that restated the constant names.

loc-justify

All four lenses (dead/vestigial, duplication, over-abstraction and hand-rolled stdlib, unreachable defense and over-design) ran over the full 783 production lines and produced no cut candidates. Nothing was manufactured to show a number.

Gates

  • GOWORK=off make lint (GOOS=linux and darwin): 0 issues
  • GOWORK=off go test -race -count=1 ./...: all packages pass
  • golangci-lint fmt --diff ./...: clean
  • go.mod / go.sum unmodified

Net: -2 prod, 0 test.

CMGS added 2 commits July 23, 2026 15:06
Drop the Handler const-group comment; the label names already state
one endpoint per value with nothing left to add.
Dedup handleHealthz/handleReadyz into a shared writeOK helper; both
wrote a 200 status plus a literal body.
@CMGS
CMGS merged commit 8f15752 into main Jul 23, 2026
2 checks passed
@CMGS
CMGS deleted the review/audit-2026-07-23 branch July 23, 2026 09:57
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