From d14b7e8d09695339fb4e020a04b76a533129791e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 19 May 2025 15:31:42 +0200 Subject: [PATCH] golangci-lint: remove exclusions for ST1020, ST1022 Signed-off-by: Sebastiaan van Stijn --- .golangci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 958b86998f..7a6d7944cf 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 function’s name - - -ST1022 # The documentation of an exported variable or constant should start with variable’s 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