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
$ go version && go envgo version go1.16 linux/amd64GO111MODULE=""GOARCH="amd64"GOBIN=""GOCACHE="/terraform/.meta/go/gocache"GOENV="/home/user/.config/go/env"GOEXE=""GOFLAGS=""GOHOSTARCH="amd64"GOHOSTOS="linux"GOINSECURE=""GOMODCACHE="/terraform/.meta/go/gopath/pkg/mod"GONOPROXY=""GONOSUMDB=""GOOS="linux"GOPATH="/terraform/.meta/go/gopath"GOPRIVATE=""GOPROXY="https://proxy.golang.org,direct"GOROOT="/usr/local/go"GOSUMDB="sum.golang.org"GOTMPDIR=""GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"GOVCS=""GOVERSION="go1.16"GCCGO="gccgo"AR="ar"CC="gcc"CXX="g++"CGO_ENABLED="0"GOMOD="/dev/null"CGO_CFLAGS="-g -O2"CGO_CPPFLAGS=""CGO_CXXFLAGS="-g -O2"CGO_FFLAGS="-g -O2"CGO_LDFLAGS="-g -O2"PKG_CONFIG="pkg-config"GOGCCFLAGS="-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2190622253=/tmp/go-build -gno-record-gcc-switches"
Additional suggestion for gorevive rules configuration:
I just tried using this linter and noticed that if you specify a rules: block at all, the golanglint-ci will only use the set you gave it. In my case, I'd like to use all the defaults, except add some exceptions for Id vs ID in var-naming. But to do so would require adding in all of the other rules explicitly.
The alternative would be to add an issue exclusion in exclude-rules for golanglint-ci itself, but I don't see a way to exclude these errors specifically.
Some revive rules are not configurable due to invalid type. You can reproduce the error using these rule config one by one:
These broken rules are commented in the full config listed below
Please include the following information:
Version of golangci-lint
Config file
Go environment
Verbose output of running
With
- { name: cognitive-complexity, arguments: [ 7 ] }
enabledWith
- {name: line-length-limit, arguments: [ 110 ]}
enabledWith
- {name: function-result-limit, arguments: [ 3 ]}
enabledWith
- {name: argument-limit, arguments: [ 4 ]}
enabledWith
- {name: cyclomatic, arguments: [ 10 ]}
enabledWith
- {name: max-public-structs, arguments: [ 3 ]}
enabledThe text was updated successfully, but these errors were encountered: