-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
78 additions
and
23 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,49 @@ | ||
# golangci-lint configuration | ||
|
||
run: | ||
skip-dirs: | ||
- build | ||
- examples | ||
|
||
timeout: 10m | ||
|
||
issues: | ||
|
||
linters: | ||
enable: | ||
- asciicheck # check for non-ascii characters | ||
- errorlint # enure error wrapping is safely done | ||
- gocritic # check for certain simplifications | ||
- gofmt # ensure code is formatted | ||
- gosec # check for security concerns | ||
- nilerr # ensure errors aren't mishandled | ||
- staticcheck # check for suspicious constructs | ||
- unused # check for unused constructs | ||
|
||
linters-settings: | ||
errcheck: | ||
# report when type assertions aren't checked for errors as in | ||
# a := b.(MyStruct) | ||
# | ||
check-type-assertions: true | ||
|
||
gocritic: | ||
disabled-tags: | ||
- experimental | ||
- opinionated | ||
|
||
disabled-checks: | ||
- ifElseChain | ||
- assignOp | ||
- unlambda | ||
- exitAfterDefer | ||
|
||
gosec: | ||
excludes: | ||
- G404 # checks that random numbers are securely generated | ||
|
||
govet: | ||
enable-all: true | ||
disable: | ||
- shadow | ||
- fieldalignment |
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
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