.golangci.yml 715 B

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