Closed DarkEye123 closed 6 years ago
Thank you, it's a right point. I am planning to do it after fixing all known linters crashes. Last known crash (the same in your log) was fixed in master yesterday. I think after a few days I enable warn
logging of all errors
Hmm, I still see this in golangci-lint v1.10.2, which was released Sept 2, 2018, which is long after this #101 was merged.
WARN [runner/staticcheck] Can't run megacheck because of compilation errors in packages [github.com/drud/ddev/cmd/ddev/cmd_test]: cmd/ddev/cmd/auth-ssh_test.go:49: cannot convert "web" (untyped string constant) to *github.com/drud/ddev/pkg/ddevapp.ExecOpts and 15 more errors: run
golangci-lint run --no-config --disable-all -E typecheck` to see all errors``
Basically, a compile error in test code is flagged but does not result in an error. If you think this is a different error, I'll be happy to open a new issue, but it's a super serious error because I've been counting on golangci-lint to fail on that kind of problem (gometalinter certainly does, we just gradually switched)
Edit: And I will test with 1.11.3 and see if the behavior has been fixed since 1.10.2.
Yes, this is broken in 1.11.3, and easy to demonstrate.
golangci-lint run --out-format=line-number --disable-all --enable=gofmt --enable=govet --enable=errcheck --enable=staticcheck --enable=ineffassign --enable=varcheck --enable=deadcode ./junk/...
WARN [runner/staticcheck] Can't run megacheck because of compilation errors in packages [github.com/drud/junk.test]: -: junk/auth-ssh_test.go:15:2: cannot find package "github.com/stretchr/testify/assert" in any of: /usr/local/Cellar/go/1.11.2/libexec/src/github.com/stretchr/testify/assert (from $GOROOT) /Users/rfay/go/src/github.com/stretchr/testify/assert (from $GOPATH)
I'll open a new issue. (Opened https://github.com/golangci/golangci-lint/issues/276)
thank you
During regular run a message saying "Congrats! No issues were found." is visible. It should contain some warning about failing linter and possible a hint to use verbose option as well.
See example: