aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-11-11 01:06:45 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-11 01:06:45 +0800
commit86f6568f6618945b19057553ec32690d723da982 (patch)
treeea7d9f92f3bcf5af22be1edfdbb302b5a5161f14 /build
parent3ee86a57f328530707974288e9db87b7c05283f9 (diff)
downloaddexon-86f6568f6618945b19057553ec32690d723da982.tar.gz
dexon-86f6568f6618945b19057553ec32690d723da982.tar.zst
dexon-86f6568f6618945b19057553ec32690d723da982.zip
build: enable unconvert linter (#15456)
* build: enable unconvert linter - fixes #15453 - update code base for failing cases * cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
Diffstat (limited to 'build')
-rw-r--r--build/ci.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/ci.go b/build/ci.go
index af58ee645..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")
+ // 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