diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-11-10 17:09:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-10 17:09:47 +0800 |
commit | febfea7af2a01acd9c8fbd4cf72ce9710704c964 (patch) | |
tree | 105ccd93e14bc0263f23f93dee7f053653c372df | |
parent | 3d88ecd61ae7b43f1227acafaec71e49093491b8 (diff) | |
parent | d1eb4006e221b7fc5497e760186fc518320c4774 (diff) | |
download | dexon-febfea7af2a01acd9c8fbd4cf72ce9710704c964.tar.gz dexon-febfea7af2a01acd9c8fbd4cf72ce9710704c964.tar.zst dexon-febfea7af2a01acd9c8fbd4cf72ce9710704c964.zip |
Merge pull request #15450 from karalabe/lint-gofmt-misspell
build: enable gofmt and misspell linters
-rw-r--r-- | build/ci.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/ci.go b/build/ci.go index 5d52fad87..af58ee645 100644 --- a/build/ci.go +++ b/build/ci.go @@ -322,7 +322,7 @@ func doLint(cmdline []string) { build.MustRun(goTool("get", "gopkg.in/alecthomas/gometalinter.v1")) build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), "--install") - configs := []string{"--vendor", "--disable-all", "--enable=vet"} // Add additional linters to the slice with "--enable=linter-name" + configs := []string{"--vendor", "--disable-all", "--enable=vet", "--enable=gofmt", "--enable=misspell"} build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), append(configs, packages...)...) } |