1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-18 16:31:44 +02:00
imgproxy/.golangci.yml
2024-06-03 20:26:10 +03:00

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:"