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
- durationcheck # checks for two durations multiplied together
132
134
- errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
133
135
- errorlint # finds code that will cause problems with the error wrapping scheme introduced in Go 1.13
134
-
- execinquery # checks query string in Query function which reads your Go src files and warning it finds
135
136
- exhaustive # checks exhaustiveness of enum switch statements
136
137
- exportloopref # checks for pointers to enclosing loop variables
137
138
- forbidigo # forbids identifiers
@@ -141,12 +142,12 @@ linters:
141
142
- gocritic # provides diagnostics that check for bugs, performance and style issues
142
143
- gofmt # checks whether code was gofmt-ed
143
144
- goimports # in addition to fixing imports, goimports also formats your code in the same style as gofmt
144
-
- gomnd # detects magic numbers
145
145
- gomodguard # allow and block lists linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations
146
146
- goprintffuncname # checks that printf-like functions are named with f at the end
147
147
- gosec # inspects source code for security problems
148
148
- loggercheck # checks key value pairs for common logger libraries (kitlog,klog,logr,zap)
149
149
- makezero # finds slice declarations with non-zero initial length
150
+
- mnd # detects magic numbers
150
151
- musttag # enforces field tags in (un)marshaled structs
151
152
- nakedret # finds naked returns in functions greater than a specified function length
@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.57.2'"&&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.58.1'"&&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/protoc-gen-doc@v1.5.1'"&&exit 1)
22
22
@golangci-lint --version | grep "version v\?1.5[678]"> /dev/null || (echo "golangci-lint version must be v1.56 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