Last active
June 5, 2020 07:51
-
-
Save vuon9/3d1489d3eadfc57868abef652f3d70b9 to your computer and use it in GitHub Desktop.
golangci-lint sample yml configuration
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
linters: | |
disable-all: true | |
enable: | |
- deadcode | |
- dupl | |
- errcheck | |
- gocritic | |
- gocognit | |
- gosimple | |
- govet | |
- lll | |
- prealloc | |
- staticcheck | |
- structcheck | |
- typecheck | |
- varcheck | |
- unconvert | |
- unparam | |
- unused | |
- gocyclo | |
linters-settings: | |
gocognit: | |
min-complexity: 15 | |
lll: | |
line-length: 180 | |
issues: | |
exclude-use-default: false | |
exclude: | |
- Error return value of .((c\.)(Error|(Abort|ShouldBind).*?)). is not checked | |
exclude-rules: | |
# Exclude some linters on test files | |
- path: _test\.go | |
linters: | |
- gocyclo | |
- errcheck | |
- dupl | |
- gosec | |
- gocognit | |
- lll | |
- linters: | |
- goerr113 | |
text: "err113" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment