posts-go/.golangci.yml

76 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-11 03:28:39 +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-03 07:45:31 +00:00
- ineffassign
2022-07-11 03:28:39 +00:00
- staticcheck
- typecheck
- unused
2022-12-03 07:45:31 +00:00
- errchkjson
2022-07-11 03:28:39 +00:00
- errname
- errorlint
- execinquery
2022-12-03 07:45:31 +00:00
- gocritic
2022-07-11 03:28:39 +00:00
- goerr113
- gofumpt
- gosec
- importas
- makezero
- nilnil
- prealloc
- unconvert
fast: true
linters-settings:
gosec:
excludes:
2022-12-03 07:45:31 +00:00
- G101
- G112
2022-07-11 03:28:39 +00:00
- G402
2022-12-03 07:45:31 +00:00
- G404
2022-07-11 03:28:39 +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-03 07:45:31 +00:00
gocritic:
enabled-tags:
- style
- performance