Files
coredns/.golangci.yml
Ville Vesilehto 53e9681a39 lint: enable protogetter linter (#7336)
Enable protogetter in golangci config and update all protobuf field
access to use getter methods instead of direct field access.
Getter methods provide safer nil pointer handling and return
appropriate default values, following protobuf best practices.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-05-30 15:29:32 -07:00

37 lines
586 B
YAML

version: "2"
linters:
default: none
enable:
- canonicalheader
- copyloopvar
- govet
- ineffassign
- intrange
- nolintlint
- protogetter
- staticcheck
- unconvert
- unused
- usetesting
- whitespace
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$