build: Enable gometalinter "unconvert" check

This commit is contained in:
Jakob Borg
2016-12-17 15:37:11 +01:00
committed by Jakob Borg
parent 744c2e82b5
commit 47f22ff3e5
12 changed files with 17 additions and 15 deletions

View File

@@ -301,6 +301,7 @@ func runCommand(cmd string, target target) {
ok = gometalinter("ineffassign", dirs) && ok
ok = gometalinter("unused", dirs) && ok
ok = gometalinter("staticcheck", dirs) && ok
ok = gometalinter("unconvert", dirs) && ok
if !ok {
os.Exit(1)
}
@@ -366,6 +367,7 @@ func setup() {
"github.com/FiloSottile/gvt",
"github.com/golang/lint/golint",
"github.com/gordonklaus/ineffassign",
"github.com/mdempsky/unconvert",
"github.com/mitchellh/go-wordwrap",
"github.com/opennota/check/cmd/...",
"github.com/tsenart/deadcode",