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
Hi,
I noticed a very strange begavior of stuctcheck linter, which report false-positive on... unexpored fields of structures in some specific situations
Version of golangci-lint
$ golangci-lint --versiongolangci-lint has version 1.40.1 built from 625445b1 on 2021-05-14T11:44:45Z
$ go version && go envgo version go1.16.4 linux/amd64GO111MODULE=""GOARCH="amd64"GOBIN=""GOCACHE="/home/username/.cache/go-build"GOENV="/home/username/.config/go/env"GOEXE=""GOFLAGS=""GOHOSTARCH="amd64"GOHOSTOS="linux"GOINSECURE=""GOMODCACHE="/home/username/go/pkg/mod"GONOPROXY=""GONOSUMDB=""GOOS="linux"GOPATH="/home/username/go"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.4"GCCGO="gccgo"AR="ar"CC="gcc"CXX="g++"CGO_ENABLED="1"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 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build418452944=/tmp/go-build -gno-record-gcc-switches"
Description of the problem
Hi,
I noticed a very strange begavior of
stuctcheck
linter, which report false-positive on... unexpored fields of structures in some specific situationsVersion of golangci-lint
Config file
Go environment
Code example or link to a public repository
sadly, I cant find a short reproducable example here
I suppose, that this behavior is related with converting interface to stuct?...
however, here is a branch of a project, where this bug occures
The text was updated successfully, but these errors were encountered: