-
Notifications
You must be signed in to change notification settings - Fork 18
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
Showing
1 changed file
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This file configures github.com/golangci/golangci-lint. | ||
|
||
run: | ||
timeout: 20m | ||
tests: true | ||
# default is true. Enables skipping of directories: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs-use-default: true | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- goimports | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- unconvert | ||
- typecheck | ||
- unused | ||
- staticcheck | ||
- bidichk | ||
- durationcheck | ||
- exportloopref | ||
- whitespace | ||
- revive # only certain checks enabled | ||
|
||
### linters we tried and will not be using: | ||
### | ||
# - structcheck # lots of false positives | ||
# - errcheck #lot of false positives | ||
# - contextcheck | ||
# - errchkjson # lots of false positives | ||
# - errorlint # this check crashes | ||
# - exhaustive # silly check | ||
# - makezero # false positives | ||
# - nilerr # several intentional | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: true | ||
revive: | ||
enable-all-rules: false | ||
# here we enable specific useful rules | ||
# see https://golangci-lint.run/usage/linters/#revive for supported rules | ||
rules: | ||
- name: receiver-naming | ||
severity: warning | ||
disabled: false | ||
exclude: [""] |