build: Enable gometalinter "staticcheck" check

This commit is contained in:
Jakob Borg
2016-12-17 15:27:44 +01:00
committed by Jakob Borg
parent ead7281c20
commit 744c2e82b5
4 changed files with 6 additions and 2 deletions

View File

@@ -300,6 +300,7 @@ func runCommand(cmd string, target target) {
ok = gometalinter("varcheck", dirs) && ok
ok = gometalinter("ineffassign", dirs) && ok
ok = gometalinter("unused", dirs) && ok
ok = gometalinter("staticcheck", dirs) && ok
if !ok {
os.Exit(1)
}
@@ -370,6 +371,7 @@ func setup() {
"github.com/tsenart/deadcode",
"golang.org/x/net/html",
"golang.org/x/tools/cmd/cover",
"honnef.co/go/staticcheck/cmd/staticcheck",
"honnef.co/go/unused/cmd/unused",
}
for _, pkg := range packages {