build: Add unconvert linter to goclean.sh.

This modifies the goclean.sh script to include the unconvert lint tool
in the gometalinter configuration.
This commit is contained in:
Dave Collins 2016-11-16 15:15:12 -06:00
parent 36af96160d
commit 1b800b69cf
No known key found for this signature in database
GPG key ID: B8904D9D9C93D1F2

View file

@ -5,7 +5,8 @@
# 3. golint (https://github.com/golang/lint) # 3. golint (https://github.com/golang/lint)
# 4. go vet (http://golang.org/cmd/vet) # 4. go vet (http://golang.org/cmd/vet)
# 5. gosimple (https://github.com/dominikh/go-simple) # 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 # gometalinter (github.com/alecthomas/gometalinter) is used to run each each
# static checker. # static checker.
@ -18,6 +19,7 @@ test -z "$(gometalinter --disable-all \
--enable=golint \ --enable=golint \
--enable=vet \ --enable=vet \
--enable=gosimple \ --enable=gosimple \
--enable=unconvert \
--enable=goimports \ --enable=goimports \
--deadline=45s ./... | tee /dev/stderr)" --deadline=45s ./... | tee /dev/stderr)"
env GORACE="halt_on_error=1" go test -v -race ./... env GORACE="halt_on_error=1" go test -v -race ./...