From 73067fd24f39cb7d2cdf63a99f6fdac661f7a8bf Mon Sep 17 00:00:00 2001 From: Zach Date: Thu, 30 Nov 2017 10:22:26 +0000 Subject: buld: enable goconst linter (#15566) --- build/ci.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/ci.go b/build/ci.go index c603f68e7..2fa13be28 100644 --- a/build/ci.go +++ b/build/ci.go @@ -323,7 +323,15 @@ func doLint(cmdline []string) { build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), "--install") // Run fast linters batched together - configs := []string{"--vendor", "--disable-all", "--enable=vet", "--enable=gofmt", "--enable=misspell"} + configs := []string{ + "--vendor", + "--disable-all", + "--enable=vet", + "--enable=gofmt", + "--enable=misspell", + "--enable=goconst", + "--min-occurrences=6", // for goconst + } build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), append(configs, packages...)...) // Run slow linters one by one -- cgit