Skip to content

Commit f3b44c2

Browse files
scotwellsclaude
andcommitted
chore: disable goconst linter
For log fields and map keys like "reason"/"message", the inline literal is clearer than a shared constant, and forcing a constant couples unrelated call sites together. Disable the linter rather than work around it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsQQoiXVgC1VaiWye4eEz8
1 parent 15367eb commit f3b44c2

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

.golangci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ linters:
88
- dupl
99
- errcheck
1010
- ginkgolinter
11-
- goconst
1211
- gocyclo
1312
- govet
1413
- ineffassign
@@ -37,11 +36,6 @@ linters:
3736
- dupl
3837
- lll
3938
path: internal/*
40-
# Repeated string literals in tests are usually fixture/table data;
41-
# extracting them to constants hurts readability more than it helps.
42-
- linters:
43-
- goconst
44-
path: _test\.go
4539
# The validation packages are built almost entirely from field.ErrorList
4640
# accumulators that hold a handful of errors; preallocating them adds noise
4741
# without meaningful benefit.

0 commit comments

Comments
 (0)