mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
51 lines
863 B
YAML
51 lines
863 B
YAML
linters:
|
|
disable-all: true
|
|
enable:
|
|
# - errcheck
|
|
- gocritic
|
|
# - goconst
|
|
- goimports
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- stylecheck
|
|
- typecheck
|
|
- unused
|
|
- bodyclose
|
|
- testifylint
|
|
|
|
linters-settings:
|
|
govet:
|
|
enable-all: true
|
|
disable:
|
|
- fieldalignment
|
|
|
|
issues:
|
|
exclude-dirs:
|
|
- .tmp
|
|
- vendor
|
|
exclude-rules:
|
|
# - path: _test\.go
|
|
# linters:
|
|
# - goconst
|
|
|
|
- linters: [bodyclose]
|
|
path: ".*_test.go"
|
|
|
|
- linters: [bodyclose]
|
|
path: "router/timeout_response.go"
|
|
|
|
# False positives on CGO generated code
|
|
- linters: [staticcheck]
|
|
text: "SA4000:"
|
|
path: vips/.*
|
|
|
|
# False positives on CGO generated code
|
|
- linters: [gocritic]
|
|
text: "dupSubExpr"
|
|
path: vips/.*
|
|
|
|
- linters: [stylecheck]
|
|
text: "ST1005:"
|