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
When I use golangci-lint and using the revive plugin, I cannot reproduce the default behavior (from revive), which mimics the golint behavior that exported functions should be documented, i.e.
Error: golangci-lint + revive does not show an error.
Expected behavior: golangci-lint (with revive) should show an error, since MyPublicStruct is not documented
type struct MyPublicStruct {
}
Obeserverd behavior: No error is shown.
But revive standalone will show the error.
// MyPublicStruct .....
type struct MyPublicStruct {
}
Version of golangci-lint
$ golangci-lint --versiongolangci-lint has version v1.41.1 built from (unknown, mod sum: "") on (unknown)
$ go version && go envGO111MODULE=""GOARCH="amd64"GOBIN=""GOCACHE="/home/user/.cache/go-build"GOENV="/home/user/.config/go/env"GOEXE=""GOFLAGS=""GOHOSTARCH="amd64"GOHOSTOS="linux"GOINSECURE=""GOMODCACHE="/home/user/go/pkg/mod"GONOPROXY=""GONOSUMDB=""GOOS="linux"GOPATH="/home/user/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.5"GCCGO="gccgo"AR="ar"CC="gcc"CXX="g++"CGO_ENABLED="1"GOMOD="/home/user/go/src/github.com/myfunkyrepo/go.mod"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-build1537520533=/tmp/go-build -gno-record-gcc-switches"
Verbose output of running
$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here
Code example or link to a public repository
typestructMyPublicStruct {
// This fails in revive, but not in golangci-lint + revive
}
// MyPublicStruct documentation...typestructMyPublicStruct {
// This is fine.
}
The text was updated successfully, but these errors were encountered:
Welcome
Description of the problem
When I use
golangci-lint
and using therevive
plugin, I cannot reproduce the default behavior (from revive), which mimics thegolint
behavior that exported functions should be documented, i.e.Error: golangci-lint + revive does not show an error.
Expected behavior: golangci-lint (with revive) should show an error, since MyPublicStruct is not documented
Obeserverd behavior: No error is shown.
But revive standalone will show the error.
Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
The text was updated successfully, but these errors were encountered: