2024-12-04 17:40:19 +00:00
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
# errcheck and govet are part of default setup and should be included but give too many errors now
|
|
|
|
# once errors are fixed, they should be enabled here:
|
|
|
|
#- errcheck
|
|
|
|
- gosimple
|
|
|
|
#- govet
|
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- unused
|
|
|
|
- gofmt
|
|
|
|
linters-settings:
|
|
|
|
gofmt:
|
|
|
|
rewrite-rules:
|
|
|
|
- pattern: 'a[b:len(a)]'
|
|
|
|
replacement: 'a[b:]'
|
2024-12-05 15:37:24 +00:00
|
|
|
- pattern: 'interface{}'
|
|
|
|
replacement: 'any'
|
2024-12-04 17:40:19 +00:00
|
|
|
issues:
|
|
|
|
exclude-dirs-use-default: false # recommended by docs https://golangci-lint.run/usage/false-positives/
|