From 1b800b69cf99d2c2ab4c35be26db7ffe1c8657e0 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 16 Nov 2016 15:15:12 -0600 Subject: [PATCH] build: Add unconvert linter to goclean.sh. This modifies the goclean.sh script to include the unconvert lint tool in the gometalinter configuration. --- goclean.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/goclean.sh b/goclean.sh index a173ebfa..fde79a0e 100755 --- a/goclean.sh +++ b/goclean.sh @@ -5,7 +5,8 @@ # 3. golint (https://github.com/golang/lint) # 4. go vet (http://golang.org/cmd/vet) # 5. gosimple (https://github.com/dominikh/go-simple) -# 6. test coverage (http://blog.golang.org/cover) +# 6. unconvert (https://github.com/mdempsky/unconvert) +# 7. test coverage (http://blog.golang.org/cover) # # gometalinter (github.com/alecthomas/gometalinter) is used to run each each # static checker. @@ -18,6 +19,7 @@ test -z "$(gometalinter --disable-all \ --enable=golint \ --enable=vet \ --enable=gosimple \ +--enable=unconvert \ --enable=goimports \ --deadline=45s ./... | tee /dev/stderr)" env GORACE="halt_on_error=1" go test -v -race ./...