diff options
author | Zach <zach.ramsay@gmail.com> | 2017-12-13 02:05:47 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-12-13 02:05:47 +0800 |
commit | 3da1bf8ca18f54d9bd2c8c110854dc071ee3898b (patch) | |
tree | 8346c96f35f065f098944e425baca74880965232 /build/ci.go | |
parent | bbea4b2b53be53fc07b620c426bda80732a8814b (diff) | |
download | dexon-3da1bf8ca18f54d9bd2c8c110854dc071ee3898b.tar dexon-3da1bf8ca18f54d9bd2c8c110854dc071ee3898b.tar.gz dexon-3da1bf8ca18f54d9bd2c8c110854dc071ee3898b.tar.bz2 dexon-3da1bf8ca18f54d9bd2c8c110854dc071ee3898b.tar.lz dexon-3da1bf8ca18f54d9bd2c8c110854dc071ee3898b.tar.xz dexon-3da1bf8ca18f54d9bd2c8c110854dc071ee3898b.tar.zst dexon-3da1bf8ca18f54d9bd2c8c110854dc071ee3898b.zip |
all: use gometalinter.v2, fix new gosimple issues (#15650)
Diffstat (limited to 'build/ci.go')
-rw-r--r-- | build/ci.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/ci.go b/build/ci.go index ede543d90..987f0bb18 100644 --- a/build/ci.go +++ b/build/ci.go @@ -319,8 +319,8 @@ func doLint(cmdline []string) { packages = flag.CommandLine.Args() } // Get metalinter and install all supported linters - build.MustRun(goTool("get", "gopkg.in/alecthomas/gometalinter.v1")) - build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), "--install") + build.MustRun(goTool("get", "gopkg.in/alecthomas/gometalinter.v2")) + build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v2"), "--install") // Run fast linters batched together configs := []string{ @@ -332,12 +332,12 @@ func doLint(cmdline []string) { "--enable=goconst", "--min-occurrences=6", // for goconst } - build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), append(configs, packages...)...) + build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v2"), append(configs, packages...)...) // Run slow linters one by one for _, linter := range []string{"unconvert", "gosimple"} { configs = []string{"--vendor", "--deadline=10m", "--disable-all", "--enable=" + linter} - build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v1"), append(configs, packages...)...) + build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v2"), append(configs, packages...)...) } } |