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