tstor/.golangci.yml

53 lines
828 B
YAML
Raw Permalink Normal View History

2023-12-21 23:15:39 +00:00
linters:
enable:
- revive
- exhaustruct
- nakedret
- gomoddirectives
- importas
- misspell
- promlinter
- prealloc
- predeclared
- stylecheck
- ineffassign
- dupl
- govet
- staticcheck
- unused
- asasalint
- asciicheck
- bidichk
- bodyclose
2024-03-28 13:09:42 +00:00
- containedctx
2023-12-21 23:15:39 +00:00
- durationcheck
- errcheck
- nakedret
- testifylint
linters-settings:
revive:
ignore-generated-header: true
severity: warning
rules:
- name: blank-imports
disabled: true
staticcheck:
checks:
- "-SA4006"
gosimple:
checks:
- "-S1002"
exhaustruct:
include:
- ".*Service"
- ".*Server.*"
exclude:
- ".*mutex"
- ".*mutex"
stylecheck:
checks:
- "-ST1003"
dupl:
threshold: 180