-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Shen <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
run: | ||
timeout: 10m | ||
skip-dirs-use-default: true | ||
modules-download-mode: readonly | ||
|
||
issues: | ||
# We want to make sure we get a full report every time. Setting these | ||
# to zero disables the limit. | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- typecheck | ||
- unused |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
SHELL = /bin/bash | ||
|
||
all: test lint | ||
|
||
# There is currently no convenient way to run tests against a whole Go workspace | ||
# https://github.com/golang/go/issues/50745 | ||
test: | ||
go list -f '{{.Dir}}/...' -m | xargs go test -cover | ||
|
||
# There is currently no convenient way to run golangci-lint against a whole Go workspace | ||
# https://github.com/golang/go/issues/50745 | ||
MODULES := $(shell go list -f '{{.Dir}}/...' -m | xargs) | ||
lint: | ||
golangci-lint run -v $(MODULES) |