Adapt go linting

This commit is contained in:
Jan Graefen 2022-12-14 14:38:40 +01:00
parent 30bb17cc29
commit bf2ae7a0f4

View file

@ -1,28 +1,30 @@
linters: linters:
enable: enable:
- gosimple - gosimple
- govet - govet
- ineffassign - ineffassign
- staticcheck - staticcheck
- bodyclose - bodyclose
- dupl - dupl
- exportloopref - exportloopref
- funlen - funlen
- gocognit - gocognit
- goconst - goconst
- gocritic - gocritic
- gocyclo - gocyclo
- godot - godot
- gofmt - gofmt
- goprintffuncname - goprintffuncname
- gosec - gosec
- prealloc - prealloc
- revive - revive
- stylecheck - stylecheck
- unconvert - unconvert
- whitespace - whitespace
linters-settings: linters-settings:
govet: govet:
check-shadowing: true check-shadowing: true
enable-all: true enable-all: true
disable:
- fieldalignment