- T1: SIGTERM/SIGINT → client.Disconnect(250) → os.Exit(0) - T2: 11 tests with miniredis mock (handleMessage, getEnv, parseInt, randomString) - T3: golang.org/x/net/context → stdlib context, math/rand → math/rand/v2 - T4: .golangci.yml + .github/workflows/ci.yml - T5: Redis SETEX error log includes key and memberID - Dockerfile: add git for go mod tidy
16 lines
183 B
YAML
16 lines
183 B
YAML
linters:
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- staticcheck
|
|
- unused
|
|
- ineffassign
|
|
- gosimple
|
|
|
|
linters-settings:
|
|
errcheck:
|
|
check-blank: true
|
|
|
|
run:
|
|
timeout: 5m
|