You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
139
137
- errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
140
138
- exhaustive # checks exhaustiveness of enum switch statements
141
-
# - exportloopref # checks for pointers to enclosing loop variables Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar."
139
+
- exptostd#Added in 1.63. Checks for usages of the deprecated experimental packages
142
140
# - fatcontext
143
141
- forbidigo # forbids identifiers
144
142
- forcetypeassert # finds forced type assertions
@@ -173,14 +171,14 @@ linters:
173
171
# - spancheck # checks for incorrect usage of opentracing.Span # Added in golangci-lint 1.56
174
172
- sqlclosecheck # checks that sql.Rows and sql.Stmt are closed
175
173
- stylecheck # is a replacement for golint
176
-
- tenv # detects using os.Setenv instead of t.Setenv since Go1.17
177
174
- testableexamples # checks if examples are testable (have an expected output)
178
175
- testifylint
179
176
#- testpackage # makes you use a separate _test package
180
177
- tparallel # detects inappropriate usage of t.Parallel() method in your Go test codes
181
178
- unconvert # removes unnecessary type conversions
182
179
- unparam # reports unused function parameters
183
180
- usestdlibvars # detects the possibility to use variables/constants from the Go standard library
181
+
- usetesting # Replaced tenv in golangci-lint 1.63
@which buf > /dev/null || (echo "buf not found, please install it from https://docs.buf.build/installation"&&exit 1)
20
-
@which golangci-lint > /dev/null || (echo "golangci-lint not found, run 'go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0'"&&exit 1)
20
+
@which golangci-lint > /dev/null || (echo "golangci-lint not found, run 'go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.5'"&&exit 1)
21
21
@which protoc-gen-doc > /dev/null || (echo "protoc-gen-doc not found, run 'go install github.com/pseudomuto/protoc-gen-doc/cmd/[email protected]'"&&exit 1)
22
-
@golangci-lint --version | grep "version v\?1.6[123]"> /dev/null || (echo "golangci-lint version must be v1.61 or later [$$(golangci-lint --version)]"&&exit 1)
22
+
@golangci-lint --version | grep "version v\?1.6[456]"> /dev/null || (echo "golangci-lint version must be v1.64 or later [$$(golangci-lint --version)]"&&exit 1)
23
23
@which goimports >/dev/null || (echo "goimports not found, run 'go install golang.org/x/tools/cmd/goimports@latest'")
0 commit comments