aboutsummaryrefslogtreecommitdiffstats
path: root/build/ci.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/ci.go')
-rw-r--r--build/ci.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/build/ci.go b/build/ci.go
index 5d52fad87..0c825ef31 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -322,9 +322,15 @@ 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"
-
+ // Run fast linters batched together
+ configs := []string{"--vendor", "--disable-all", "--enable=vet", "--enable=gofmt", "--enable=misspell"}
build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), append(configs, packages...)...)
+
+ // Run slow linters one by one
+ for _, linter := range []string{"unconvert"} {
+ configs = []string{"--vendor", "--deadline=10m", "--disable-all", "--enable=" + linter}
+ build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), append(configs, packages...)...)
+ }
}
// Release Packaging