65 lines
980 B
YAML
65 lines
980 B
YAML
linters-settings:
|
|
govet:
|
|
check-shadowing: true
|
|
gocyclo:
|
|
min-complexity: 20
|
|
maligned:
|
|
suggest-new: true
|
|
dupl:
|
|
threshold: 200
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 2
|
|
misspell:
|
|
locale: US
|
|
lll:
|
|
line-length: 140
|
|
goimports:
|
|
local-prefixes: github.com/golangci/golangci-lint
|
|
gocritic:
|
|
enabled-tags:
|
|
- performance
|
|
- style
|
|
- experimental
|
|
disabled-checks:
|
|
- wrapperFunc
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- govet
|
|
- gocyclo
|
|
- dupl
|
|
- lll
|
|
- gosec
|
|
- dupl
|
|
- goconst
|
|
# - depguard
|
|
- misspell
|
|
- goimports
|
|
# - gocritic
|
|
- staticcheck
|
|
- deadcode
|
|
- errcheck
|
|
- unused
|
|
- gosimple
|
|
- structcheck
|
|
- varcheck
|
|
- ineffassign
|
|
- typecheck
|
|
- bodyclose
|
|
- unconvert
|
|
- unparam
|
|
- prealloc
|
|
- whitespace
|
|
- exportloopref
|
|
|
|
run:
|
|
tests: false
|
|
go: "1.21"
|
|
skip-dirs:
|
|
- swagger-ui
|
|
- configs
|
|
- templates
|
|
- \.go
|