Skip to content

Commit d1eb400

Browse files
committed
build: enable gofmt and misspell linters
1 parent 3d88ecd commit d1eb400

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎build/ci.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ func doLint(cmdline []string) {
322322
build.MustRun(goTool("get", "gopkg.in/alecthomas/gometalinter.v1"))
323323
build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), "--install")
324324

325-
configs := []string{"--vendor", "--disable-all", "--enable=vet"} // Add additional linters to the slice with "--enable=linter-name"
325+
configs := []string{"--vendor", "--disable-all", "--enable=vet", "--enable=gofmt", "--enable=misspell"}
326326

327327
build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), append(configs, packages...)...)
328328
}

0 commit comments

Comments
 (0)