diff --git a/.golangci.yml b/.golangci.yml index 63c95356..602fd886 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,7 +16,6 @@ linters: - errcheck - exhaustive - exportloopref - - gochecknoinits - gocognit - gocritic - gocyclo @@ -119,6 +118,9 @@ linters: # It's OK to have dynamic errors as this is mostly a CLI - goerr113 + # Work around https://github.com/golangci/golangci-lint/pull/4698 + - gochecknoinits + issues: # Don't hide multiple issues that belong to one class since GitHub annotations can handle them all nicely. max-issues-per-linter: 0 diff --git a/internal/version/version.go b/internal/version/version.go index 30ab257a..e576cabf 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -12,7 +12,6 @@ var ( FullVersion = "" ) -//nolint:gochecknoinits func init() { if Version == "unknown" { info, ok := debug.ReadBuildInfo()