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:
parent
36af96160d
commit
1b800b69cf
1 changed files with 3 additions and 1 deletions
|
@ -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 ./...
|
||||||
|
|
Loading…
Reference in a new issue