build: Enable gometalinter "unused" check

This commit is contained in:
Jakob Borg
2016-12-17 15:24:13 +01:00
committed by Jakob Borg
parent aa3ef49dd7
commit ead7281c20
4 changed files with 2 additions and 17 deletions

View File

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