68 lines
1.0 KiB
YAML
68 lines
1.0 KiB
YAML
run:
|
|
tests: false
|
|
skip-dirs:
|
|
- ".*test.*"
|
|
- ".*mock.*"
|
|
- ".*generated.*"
|
|
- ".*example.*"
|
|
skip-files:
|
|
- ".*Mock.*"
|
|
- ".*_mock.*"
|
|
- ".*_generated.*"
|
|
|
|
output:
|
|
sort-results: true
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- deadcode
|
|
- errcheck
|
|
- gosimple
|
|
- govet
|
|
- staticcheck
|
|
- typecheck
|
|
- unused
|
|
- varcheck
|
|
- errname
|
|
- errorlint
|
|
- execinquery
|
|
- goerr113
|
|
- gofumpt
|
|
- gosec
|
|
- importas
|
|
- makezero
|
|
- nilnil
|
|
- prealloc
|
|
- unconvert
|
|
fast: true
|
|
|
|
linters-settings:
|
|
gosec:
|
|
excludes:
|
|
- G402
|
|
- G501
|
|
- G505
|
|
exclude-generated: true
|
|
govet:
|
|
check-shadowing: false
|
|
disable-all: true
|
|
enable:
|
|
- assign
|
|
- atomic
|
|
- bools
|
|
- buildtag
|
|
- composites
|
|
- copylocks
|
|
- fieldalignment
|
|
- httpresponse
|
|
- loopclosure
|
|
- lostcancel
|
|
- nilfunc
|
|
- printf
|
|
- unmarshal
|
|
- unreachable
|
|
- unusedresult
|
|
staticcheck:
|
|
checks: ["all", "-SA1019"]
|