.golangci.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. - deadcode
  8. - depguard
  9. - dogsled
  10. - dupl
  11. - errcheck
  12. - funlen
  13. - goconst
  14. # - gocritic
  15. - gocyclo
  16. - gofmt
  17. - goimports
  18. - golint
  19. - goprintffuncname
  20. - gosimple
  21. - govet
  22. - ineffassign
  23. - interfacer
  24. - misspell
  25. - nolintlint
  26. - rowserrcheck
  27. - scopelint
  28. - staticcheck
  29. - structcheck
  30. - stylecheck
  31. - typecheck
  32. - unconvert
  33. - unparam
  34. - unused
  35. - varcheck
  36. - whitespace
  37. issues:
  38. # Excluding configuration per-path, per-linter, per-text and per-source
  39. exclude-rules:
  40. - path: _test\.go
  41. linters:
  42. - gomnd
  43. # https://github.com/go-critic/go-critic/issues/926
  44. - linters:
  45. - gocritic
  46. text: "unnecessaryDefer:"
  47. linters-settings:
  48. funlen:
  49. lines: 66
  50. statements: 40
  51. issues:
  52. include:
  53. - EXC0002 # disable excluding of issues about comments from golint
  54. exclude-rules:
  55. - linters:
  56. - stylecheck
  57. text: "ST1000:"