go-test-color/.golangci.yml

76 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-23 14:30:15 +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
2023-02-21 09:59:05 +00:00
- ineffassign
2022-07-23 14:30:15 +00:00
- staticcheck
- typecheck
- unused
2023-02-21 09:59:05 +00:00
- errchkjson
2022-07-23 14:30:15 +00:00
- errname
- errorlint
- execinquery
2023-02-21 09:59:05 +00:00
- gocritic
2022-07-23 14:30:15 +00:00
- goerr113
- gofumpt
- gosec
- importas
- makezero
- nilnil
- prealloc
- unconvert
fast: true
linters-settings:
gosec:
excludes:
2023-02-21 09:59:05 +00:00
- G101
- G112
2022-07-23 14:30:15 +00:00
- G402
2023-02-21 09:59:05 +00:00
- G404
2022-07-23 14:30:15 +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"]
2023-02-21 09:59:05 +00:00
gocritic:
enabled-tags:
- style
- performance