.golangci.yml 763 B

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