You've already forked postgres_exporter
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:
@@ -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...)...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user