Skip to content

Commit

Permalink
ci: enable more golangci-lint checkers, update config for Go 1.18
Browse files Browse the repository at this point in the history
Commit 3f5cb13 updated CI for Go 1.18
as well as the version of golangci-lint. However, it omitted updating
the golangci-lint configuration to default for Go 1.18 instead of Go
1.17. This commit does this and also enables more checkers.

Signed-off-by: Robin Hahling <[email protected]>
  • Loading branch information
rolinh authored and tklauser committed Mar 28, 2022
1 parent 4332e23 commit 5b61251
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,66 @@ linters:
disable-all: true
enable:
- asciicheck
- bidichk
- bodyclose
- containedctx
- cyclop
- deadcode
- dogsled
- dupl
- durationcheck
- errcheck
- errname
- errorlint
- exhaustive
- exportloopref
- forcetypeassert
- gocognit
- goconst
- gocritic
- godot
- goerr113
- gofmt
- goimports
- gomnd
- gosec
- gosimple
- govet
- grouper
- ifshort
- ineffassign
- ireturn
- makezero
- misspell
- nestif
- nilerr
- nilnil
- prealloc
- predeclared
- revive
- rowserrcheck
- staticcheck
- structcheck
- tenv
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- varcheck
- wastedassign

linters-settings:
cyclop:
skip-tests: true
gosimple:
go: "1.17"
go: "1.18"
govet:
enable-all: true
staticcheck:
go: "1.17"
go: "1.18"
stylecheck:
go: "1.17"
go: "1.18"
unused:
go: "1.17"
go: "1.18"

0 comments on commit 5b61251

Please sign in to comment.