chore(lint): re-enable staticcheck and unused #125

Merged
Sebi merged 1 commits from chore/staticcheck into main 2026-11-23 06:17:47 +00:00
Owner

golangci-lint v2.15.0 (CI pin bumped from v2.12.2) no longer panics on the Go 1.27 standard library, so staticcheck and unused are back in .golangci.yml.

Findings fixed:

  • unused: groupTree.depth, pdf.charWidth, a test helper callCount.
  • ST1005: three notifier errors started with a product name (rephrased); the CLI usage text is now a usageError type instead of errors.New(usage).
  • QF1001/QF1008: two negations rewritten by De Morgan; cfg.Common.Validate() → cfg.Validate().

golangci-lint run reports 0 issues; go test -p 1 ./... passes.

Closes #43

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

golangci-lint **v2.15.0** (CI pin bumped from v2.12.2) no longer panics on the Go 1.27 standard library, so `staticcheck` and `unused` are back in `.golangci.yml`. Findings fixed: - `unused`: `groupTree.depth`, `pdf.charWidth`, a test helper `callCount`. - ST1005: three notifier errors started with a product name (rephrased); the CLI usage text is now a `usageError` type instead of `errors.New(usage)`. - QF1001/QF1008: two negations rewritten by De Morgan; `cfg.Common.Validate()` → `cfg.Validate()`. `golangci-lint run` reports 0 issues; `go test -p 1 ./...` passes. Closes #43 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added 1 commit 2026-11-23 06:12:30 +00:00
chore(lint): re-enable staticcheck and unused
ci / lint (pull_request) Successful in 6m32s
ci / image (pull_request) Successful in 6m29s
ci / build (pull_request) Successful in 11m31s
ci / test (pull_request) Successful in 12m59s
d58e3e2653
golangci-lint v2.15.0 ships a honnef.co/go/tools that analyzes the Go 1.27
standard library without panicking. Fix what they found: dead helpers, an
unused constant, error strings starting with a product name, the usage
error, and two negations simplified by De Morgan.

Closes #43

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 4097139e0b into main 2026-11-23 06:17:47 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#125