Use the newest go vet

The newest go vet based on go/analysis
This commit is contained in:
Denis Isaev 2019-03-17 22:47:29 +03:00 committed by Isaev Denis
parent 7289a90245
commit 8c1237b667
85 changed files with 6716 additions and 4595 deletions

View file

@ -6,6 +6,8 @@ import (
"path/filepath"
"testing"
"github.com/golangci/golangci-lint/pkg/lint/lintersdb"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
@ -36,7 +38,7 @@ func newTestNolintProcessor(log logutils.Log) *Nolint {
filepath.Join("testdata", "nolint2.go"),
filepath.Join("testdata", "nolint_bad_names.go"),
)
return NewNolint(cache, log)
return NewNolint(cache, log, lintersdb.NewManager(nil))
}
func getOkLogger(ctrl *gomock.Controller) *logutils.MockLog {