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>
This commit is contained in:
Ville Vesilehto
2025-05-31 01:29:32 +03:00
committed by GitHub
parent 7ecb5011b2
commit 53e9681a39
7 changed files with 46 additions and 31 deletions

View File

@@ -8,6 +8,7 @@ linters:
- ineffassign
- intrange
- nolintlint
- protogetter
- staticcheck
- unconvert
- unused