populatedb-go/.golangci.yml

76 lines
1.1 KiB
YAML
Raw Normal View History

2022-11-06 09:21:32 +00:00
run:
tests: false
skip-dirs:
- ".*test.*"
- ".*mock.*"
- ".*generated.*"
- ".*example.*"
skip-files:
- ".*Mock.*"
- ".*_mock.*"
- ".*_generated.*"
output:
sort-results: true
linters:
disable-all: true
enable:
- errcheck
- gosimple
- govet
2022-12-05 08:44:16 +00:00
- ineffassign
2022-11-06 09:21:32 +00:00
- staticcheck
- typecheck
- unused
2022-12-05 08:44:16 +00:00
- errchkjson
2022-11-06 09:21:32 +00:00
- errname
- errorlint
- execinquery
2022-12-05 08:44:16 +00:00
- gocritic
2022-11-06 09:21:32 +00:00
- goerr113
- gofumpt
- gosec
- importas
- makezero
- nilnil
- prealloc
- unconvert
fast: true
linters-settings:
gosec:
excludes:
2022-12-05 08:44:16 +00:00
- G101
- G112
2022-11-06 09:21:32 +00:00
- G402
2022-12-05 08:44:16 +00:00
- G404
2022-11-06 09:21:32 +00:00
- 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"]
2022-12-05 08:44:16 +00:00
gocritic:
enabled-tags:
- style
- performance