feat: automatic Go version detection (#2669)

* feat: disable unsupported go1.18 govet analyzers
* fix: inactivate interfacer with go1.18
This commit is contained in:
Ludovic Fernandez 2022-03-23 16:54:11 +01:00 committed by GitHub
parent da0a6b3b8a
commit 7bbbe77e5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 112 additions and 69 deletions

View file

@ -22,7 +22,6 @@ type Noop struct {
func (n Noop) Run(_ context.Context, lintCtx *Context) ([]result.Issue, error) {
lintCtx.Log.Warnf("%s is disabled because of go1.18."+
" If you are not using go1.18, you can set `go: go1.17` in the `run` section."+
" You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.", n.name)
return nil, nil
}