1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-08-08 04:42:07 +03:00

Disable lll in gometalinter.

This commit is contained in:
Will Rouesnel
2018-03-06 23:17:33 +11:00
parent 3f6cdf2e85
commit 2f4fc7201f

View File

@@ -454,7 +454,7 @@ func Lint() error {
mg.Deps(Tools) mg.Deps(Tools)
args := []string{"-j", fmt.Sprintf("%v", concurrency), fmt.Sprintf("--deadline=%s", args := []string{"-j", fmt.Sprintf("%v", concurrency), fmt.Sprintf("--deadline=%s",
linterDeadline.String()), "--enable-all", "--line-length=120", linterDeadline.String()), "--enable-all", "--line-length=120",
"--disable=gocyclo", "--disable=testify", "--disable=test", "--exclude=assets/bindata.go"} "--disable=gocyclo", "--disable=testify", "--disable=test", "--disable=lll", "--exclude=assets/bindata.go"}
return sh.RunV("gometalinter", append(args, goDirs...)...) return sh.RunV("gometalinter", append(args, goDirs...)...)
} }