-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added lint configuration and fixed error (#28)
Will try to set up presubmit integration in subsequent PR. For now, `golangci-lint run` at least passes locally, which is still an improvement from before this PR.
- Loading branch information
1 parent
9998f54
commit ff6e921
Showing
2 changed files
with
32 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
run: | ||
# timeout for analysis, e.g. 30s, 5m, default is 1m | ||
deadline: 90s | ||
|
||
linters-settings: | ||
gocyclo: | ||
# minimal code complexity to report, 30 by default (but we recommend 10-20) | ||
min-complexity: 25 | ||
depguard: | ||
list-type: blacklist | ||
packages: | ||
- golang.org/x/net/context | ||
- github.com/gogo/protobuf/proto | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- deadcode | ||
- depguard | ||
- gocyclo | ||
- gofmt | ||
- goimports | ||
- govet | ||
- ineffassign | ||
- megacheck | ||
- misspell | ||
- revive | ||
- varcheck | ||
|
||
issues: | ||
# Don't turn off any checks by default. We can do this explicitly if needed. | ||
exclude-use-default: false |
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