2019-09-10 14:45:34 +02:00
|
|
|
run:
|
|
|
|
skip-dirs:
|
|
|
|
- .tmp
|
2019-09-11 10:42:36 +02:00
|
|
|
- vendor
|
2019-09-10 14:45:34 +02:00
|
|
|
|
2019-04-11 16:07:09 +02:00
|
|
|
linters:
|
2019-09-11 10:42:36 +02:00
|
|
|
disable-all: true
|
2019-04-11 16:07:09 +02:00
|
|
|
enable:
|
2019-09-11 10:42:36 +02:00
|
|
|
- deadcode
|
|
|
|
# - errcheck
|
|
|
|
- gocritic
|
|
|
|
# - goconst
|
2019-04-11 16:07:09 +02:00
|
|
|
- goimports
|
2019-09-11 10:42:36 +02:00
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
2019-04-11 16:07:09 +02:00
|
|
|
- staticcheck
|
2019-09-11 10:42:36 +02:00
|
|
|
- structcheck
|
|
|
|
- stylecheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
# report about shadowed variables
|
|
|
|
check-shadowing: true
|
2019-04-11 16:07:09 +02:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2019-09-11 10:42:36 +02:00
|
|
|
# - path: _test\.go
|
|
|
|
# linters:
|
|
|
|
# - goconst
|
2019-04-11 16:07:09 +02:00
|
|
|
|
|
|
|
# False positives on CGO generated code
|
2019-09-11 10:42:36 +02:00
|
|
|
- linters: [staticcheck]
|
2019-04-11 16:07:09 +02:00
|
|
|
text: "SA4000:"
|
2019-09-11 10:42:36 +02:00
|
|
|
path: vips\.go
|
2019-09-10 14:45:34 +02:00
|
|
|
|
2019-09-11 10:42:36 +02:00
|
|
|
# False positives on CGO generated code
|
|
|
|
- linters: [gocritic]
|
|
|
|
text: "dupSubExpr"
|
|
|
|
path: vips\.go
|
2019-09-10 14:45:34 +02:00
|
|
|
|
2019-09-11 10:42:36 +02:00
|
|
|
- linters: [stylecheck]
|
|
|
|
text: "ST1005:"
|