-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add golangci-lint config file for flexibility
- Loading branch information
1 parent
dfce853
commit 1630a90
Showing
2 changed files
with
31 additions
and
2 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,29 @@ | ||
# This file contains configuration options for golangci-lint. | ||
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml | ||
|
||
run: | ||
# Timeout for analysis. | ||
timeout: 5m | ||
|
||
linters: | ||
# Disable all linters to prevent appearing new issues on golangci-lint update. | ||
disable-all: true | ||
enable: | ||
- bodyclose | ||
- errcheck | ||
- gochecknoinits | ||
- gocritic | ||
- gofumpt | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- nolintlint | ||
- staticcheck | ||
- unused | ||
|
||
linters-settings: | ||
# Show all issues from a linter. | ||
max-issues-per-linter: 0 | ||
|
||
# Show all issues with the same text. | ||
max-same-issues: 0 |