-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use golangci-lint for static checks
Signed-off-by: Robin Hahling <[email protected]>
- Loading branch information
Showing
2 changed files
with
62 additions
and
11 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,54 @@ | ||
# See https://golangci-lint.run/usage/configuration/ for available options. | ||
# Also https://github.com/cilium/cilium/blob/master/.golangci.yaml as a | ||
# reference. | ||
linters: | ||
disable-all: true | ||
enable: | ||
- asciicheck | ||
- deadcode | ||
- dogsled | ||
- durationcheck | ||
- errcheck | ||
- errname | ||
- errorlint | ||
- exhaustive | ||
- exportloopref | ||
- forcetypeassert | ||
- godot | ||
- goerr113 | ||
- gofmt | ||
- goimports | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ifshort | ||
- ineffassign | ||
- misspell | ||
- nestif | ||
- nilerr | ||
- prealloc | ||
- predeclared | ||
- revive | ||
- rowserrcheck | ||
- staticcheck | ||
- structcheck | ||
- thelper | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- varcheck | ||
|
||
linters-settings: | ||
gosimple: | ||
go: "1.17" | ||
govet: | ||
enable-all: true | ||
disable: | ||
- fieldalignment | ||
staticcheck: | ||
go: "1.17" | ||
stylecheck: | ||
go: "1.17" | ||
unused: | ||
go: "1.17" |