We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9e61b4 commit a4838f3Copy full SHA for a4838f3
.golangci.yml
@@ -16,7 +16,6 @@ linters:
16
- errcheck
17
- exhaustive
18
- exportloopref
19
- - gochecknoinits
20
- gocognit
21
- gocritic
22
- gocyclo
@@ -119,6 +118,9 @@ linters:
119
118
# It's OK to have dynamic errors as this is mostly a CLI
120
- goerr113
121
+ # Work around https://github.com/golangci/golangci-lint/pull/4698
122
+ - gochecknoinits
123
+
124
issues:
125
# Don't hide multiple issues that belong to one class since GitHub annotations can handle them all nicely.
126
max-issues-per-linter: 0
internal/version/version.go
@@ -12,7 +12,6 @@ var (
12
FullVersion = ""
13
)
14
15
-//nolint:gochecknoinits
func init() {
if Version == "unknown" {
info, ok := debug.ReadBuildInfo()
0 commit comments