-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(*): fix golangci lint config (#93)
* fix lint config * changelog * batch 1 of fixes * batch 2 of fixes * batch 3 of fixes * batch 4 of fixes
- Loading branch information
Showing
36 changed files
with
499 additions
and
455 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,80 @@ | ||
run: | ||
timeout: 5m | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
- decorder | ||
- dogsled | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- exhaustive | ||
- forbidigo | ||
- forcetypeassert | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- goheader | ||
- gomodguard | ||
- goprintffuncname | ||
- gosimple | ||
- govet | ||
- grouper | ||
- importas | ||
- ineffassign | ||
- loggercheck | ||
- maintidx | ||
- makezero | ||
- misspell | ||
- nakedret | ||
- nilerr | ||
# - nlreturn # Style wise I personally like this one, todo(lazar): unlax at somepoint, good practice | ||
- noctx | ||
- nonamedreturns | ||
- nosprintfhostport | ||
- paralleltest | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- stylecheck | ||
- tenv | ||
- testableexamples | ||
- tparallel | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- usestdlibvars | ||
- unused | ||
- wastedassign | ||
- whitespace | ||
# - wrapcheck # we really should be using this, lax for now todo(lazar): unlax at somepoint, good practice | ||
|
||
issues: | ||
max-same-issues: 0 | ||
# Default: https://golangci-lint.run/usage/false-positives/#default-exclusions | ||
exclude-dirs: | ||
- e2etest | ||
- itest | ||
exclude-rules: | ||
# Exclude some linters from running on tests files. | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- errcheck | ||
- dupl | ||
- gosec | ||
- gocritic | ||
- path-except: _test\.go | ||
linters: | ||
- forbidigo |
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
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
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
Oops, something went wrong.