.golangci.yml 863 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. linters:
  2. disable-all: true
  3. enable:
  4. # - errcheck
  5. - gocritic
  6. # - goconst
  7. - goimports
  8. - gosimple
  9. - govet
  10. - ineffassign
  11. - staticcheck
  12. - stylecheck
  13. - typecheck
  14. - unused
  15. - bodyclose
  16. - testifylint
  17. linters-settings:
  18. govet:
  19. enable-all: true
  20. disable:
  21. - fieldalignment
  22. issues:
  23. exclude-dirs:
  24. - .tmp
  25. - vendor
  26. exclude-rules:
  27. # - path: _test\.go
  28. # linters:
  29. # - goconst
  30. - linters: [bodyclose]
  31. path: ".*_test.go"
  32. - linters: [bodyclose]
  33. path: "router/timeout_response.go"
  34. # False positives on CGO generated code
  35. - linters: [staticcheck]
  36. text: "SA4000:"
  37. path: vips/.*
  38. # False positives on CGO generated code
  39. - linters: [gocritic]
  40. text: "dupSubExpr"
  41. path: vips/.*
  42. - linters: [stylecheck]
  43. text: "ST1005:"