.golangci.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. linters:
  2. # please, do not use `enable-all`: it's deprecated and will be removed soon.
  3. # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
  4. disable-all: true
  5. enable:
  6. - bodyclose
  7. - depguard
  8. - dogsled
  9. - dupl
  10. - errcheck
  11. - exportloopref
  12. - funlen
  13. - goconst
  14. # - gocritic
  15. - gocyclo
  16. - gofmt
  17. - goimports
  18. - goprintffuncname
  19. - gosimple
  20. - govet
  21. - ineffassign
  22. - misspell
  23. - nolintlint
  24. - rowserrcheck
  25. - staticcheck
  26. - stylecheck
  27. - typecheck
  28. - unconvert
  29. - unparam
  30. - unused
  31. - whitespace
  32. - revive
  33. issues:
  34. include:
  35. - EXC0002 # disable excluding of issues about comments from golint
  36. exclude-rules:
  37. - linters:
  38. - stylecheck
  39. text: "ST1000:"
  40. # Excluding configuration per-path, per-linter, per-text and per-source
  41. - path: _test\.go
  42. linters:
  43. - gomnd
  44. # https://github.com/go-critic/go-critic/issues/926
  45. - linters:
  46. - gocritic
  47. text: "unnecessaryDefer:"
  48. linters-settings:
  49. funlen:
  50. lines: 66
  51. statements: 50
  52. #issues:
  53. # include:
  54. # - EXC0002 # disable excluding of issues about comments from golint
  55. # exclude-rules:
  56. # - linters:
  57. # - stylecheck
  58. # text: "ST1000:"