Skip to content

Commit

Permalink
Update golint (#1157)
Browse files Browse the repository at this point in the history
* golangci: replace deadline with timeout

Signed-off-by: Xiang Dai <764524258@qq.com>

* put concurrency into config file

Signed-off-by: Xiang Dai <764524258@qq.com>
  • Loading branch information
daixiang0 authored and cyriltovena committed Oct 16, 2019
1 parent b6faee2 commit 64c1de8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ run:
modules-download-mode: vendor

# default concurrency is a available CPU number
concurrency: 2
concurrency: 16

# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 5m
timeout: 5m

# exit code when at least one issue was found, default is 1
issues-exit-code: 1
Expand Down Expand Up @@ -66,4 +66,4 @@ linters:

issues:
exclude:
- Error return value of .*log\.Logger\)\.Log\x60 is not checked
- Error return value of .*log\.Logger\)\.Log\x60 is not checked
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ publish: dist
########

lint:
GO111MODULE=on GOGC=10 golangci-lint run --timeout=5m -j 16
GO111MODULE=on GOGC=10 golangci-lint run

########
# Test #
Expand Down

0 comments on commit 64c1de8

Please sign in to comment.