-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce7bf71
commit 6d6afb4
Showing
2 changed files
with
50 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,43 @@ | ||
linters: | ||
enable-all: true | ||
disable: | ||
- godox | ||
- wsl | ||
- gomnd | ||
- testpackage | ||
- nolintlint | ||
- gofumpt | ||
- nlreturn | ||
- gci | ||
linters-settings: | ||
maligned: | ||
# print struct with more effective memory layout or not, false by default | ||
suggest-new: true | ||
gocyclo: | ||
# minimal code complexity to report, 30 by default (but we recommend 10-20) | ||
min-complexity: 30 | ||
goimports: | ||
# put imports beginning with prefix after 3rd-party packages; | ||
# it's a comma-separated list of prefixes | ||
local-prefixes: github.com/goreleaser/fileglob | ||
govet: | ||
check-shadowing: true | ||
errcheck: | ||
ignore: ^Close.*,fmt:.*,github.com/pkg/errors:^Wrap.*,os:^Setenv$ | ||
lll: | ||
line-length: 200 | ||
golint: | ||
min-confidence: .8 | ||
nakedret: | ||
max-func-lines: 0 | ||
gocritic: | ||
disabled-checks: | ||
- whyNoLint | ||
enabled-tags: | ||
- style | ||
- performance | ||
issues: | ||
exclude-rules: | ||
- text: "G104" # gosec G104 is caught by errcheck | ||
linters: | ||
- gosec |