diff options
author | thomasmodeneis <thomas.modeneis@gmail.com> | 2018-04-18 06:53:50 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-04-18 06:53:50 +0800 |
commit | ba1030b6b84f810c04a82221a1b1c0a3dbf499a8 (patch) | |
tree | 9c3450535acddfec3b1987e0a2e04fa9ca303e38 /build/ci.go | |
parent | 7605e63cb9dda7fc5bb619abf1eb1f74ac3f6cc1 (diff) | |
download | go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.gz go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.bz2 go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.lz go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.xz go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.zst go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.zip |
build: enable goimports and varcheck linters (#16446)
Diffstat (limited to 'build/ci.go')
-rw-r--r-- | build/ci.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/ci.go b/build/ci.go index 91de4e876..5fce3c8e6 100644 --- a/build/ci.go +++ b/build/ci.go @@ -329,7 +329,10 @@ func doLint(cmdline []string) { // Run fast linters batched together configs := []string{ "--vendor", + "--tests", "--disable-all", + "--enable=goimports", + "--enable=varcheck", "--enable=vet", "--enable=gofmt", "--enable=misspell", @@ -340,7 +343,7 @@ func doLint(cmdline []string) { // Run slow linters one by one for _, linter := range []string{"unconvert", "gosimple"} { - configs = []string{"--vendor", "--deadline=10m", "--disable-all", "--enable=" + linter} + configs = []string{"--vendor", "--tests", "--deadline=10m", "--disable-all", "--enable=" + linter} build.MustRunCommand(filepath.Join(GOBIN, "gometalinter.v2"), append(configs, packages...)...) } } |