From 3ed82c088208119ab6a021f42657441003fc2634 Mon Sep 17 00:00:00 2001 From: JessonChan Date: Tue, 22 Jan 2019 17:43:55 +0800 Subject: [PATCH] Gosimple has been deprecated. Please use staticcheck instead. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 97fc317b..343041bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ install: - go get github.com/casbin/casbin - go get github.com/elazarl/go-bindata-assetfs - go get github.com/OwnLocal/goes - - go get -u honnef.co/go/tools/cmd/gosimple + - go get -u honnef.co/go/tools/cmd/staticcheck - go get -u github.com/mdempsky/unconvert - go get -u github.com/gordonklaus/ineffassign - go get -u github.com/golang/lint/golint @@ -55,7 +55,7 @@ after_script: - rm -rf ./res/var/* script: - go test -v ./... - - gosimple -ignore "$(cat .gosimpleignore)" $(go list ./... | grep -v /vendor/) + - staticcheck -show-ignore "$(cat .gosimpleignore)" $(go list ./... | grep -v /vendor/) - unconvert $(go list ./... | grep -v /vendor/) - ineffassign . - find . ! \( -path './vendor' -prune \) -type f -name '*.go' -print0 | xargs -0 gofmt -l -s