golangci-lint: remove exclusions for ST1020, ST1022

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2025-05-19 15:31:42 +02:00
parent 0ffb72419a
commit d14b7e8d09
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

View File

@ -133,8 +133,6 @@ linters:
checks:
- all
- -QF1008 # Omit embedded fields from selector expression
- -ST1020 # The documentation of an exported function should start with the functions name
- -ST1022 # The documentation of an exported variable or constant should start with variables name
revive:
rules:
@ -207,6 +205,12 @@ linters:
linters:
- govet
# Ignore for cli/command/formatter/tabwriter, which is forked from go stdlib, so we want to align with it.
- text: '^(ST1020|ST1022): comment on exported'
path: "cli/command/formatter/tabwriter"
linters:
- staticcheck
# Log a warning if an exclusion rule is unused.
# Default: false
warn-unused: true