Skip to content

chore: golangci-lint goconst 해소 + dead code 제거#382

Merged
KeiaiLab-PHIL merged 1 commit into
mainfrom
chore/lint-deadcode-cleanup
Jun 30, 2026
Merged

chore: golangci-lint goconst 해소 + dead code 제거#382
KeiaiLab-PHIL merged 1 commit into
mainfrom
chore/lint-deadcode-cleanup

Conversation

@KeiaiLab-PHIL

Copy link
Copy Markdown
Contributor

요약

main golangci-lint 부채 해소 + dead code 정리.

  • builder.go: "metrics" 포트명 리터럴 4회 → metricsPortName 상수 (goconst, 카운트 불변·동작 동일).
  • buildDataVolumeClaimTemplate 제거 — dead code(호출처 0, lint:ignore U1000). commons pkg/pvc.BuildDataPVC(v0.13.0)가 적법한 대체. 제거로 잘못 삽입됐던 tlsArgs doc 주석이 함수와 재결합.

검증

gofmt -l: 0 / go build ./...: OK / go vet: clean / golangci-lint: 0 issues / go test resources: ok

🤖 Generated with Claude Code

- builder.go: "metrics" 포트명 리터럴 4회 → metricsPortName 상수 (goconst SSOT).
- buildDataVolumeClaimTemplate 제거 (dead code, 호출처 0, lint:ignore U1000).
  commons pkg/pvc.BuildDataPVC 가 적법한 대체 home. 제거로 잘못 삽입됐던
  tlsArgs doc 주석이 func tlsArgs 와 재결합 (오삽입 정정).

검증: gofmt 0 / go build ./... OK / go vet clean / golangci-lint 0 issues /
go test resources ok.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: phil <phil@keiailab.com>
@KeiaiLab-PHIL KeiaiLab-PHIL merged commit 5a60f53 into main Jun 30, 2026
10 checks passed
@KeiaiLab-PHIL KeiaiLab-PHIL deleted the chore/lint-deadcode-cleanup branch June 30, 2026 02:22
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