You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.6 KiB

  1. linters:
  2. enable:
  3. - bodyclose
  4. - deadcode
  5. - depguard
  6. - dogsled
  7. - dupl
  8. # - errcheck
  9. # - funlen
  10. # - gochecknoglobals
  11. # - gochecknoinits
  12. - goconst
  13. - gocritic
  14. # - gocyclo
  15. # - godox
  16. - gofmt
  17. - goimports
  18. # - golint
  19. - gosec
  20. - gosimple
  21. - govet
  22. - ineffassign
  23. - interfacer
  24. # - lll
  25. - misspell
  26. - maligned
  27. - nakedret
  28. - prealloc
  29. - scopelint
  30. - staticcheck
  31. - structcheck
  32. # - stylecheck
  33. - typecheck
  34. - unconvert
  35. # - unparam
  36. - unused
  37. - varcheck
  38. # - whitespace
  39. # - wsl
  40. # - gocognit
  41. disable:
  42. - errcheck
  43. linters-settings:
  44. dogsled:
  45. max-blank-identifiers: 3
  46. maligned:
  47. # print struct with more effective memory layout or not, false by default
  48. suggest-new: true
  49. # govet:
  50. # check-shadowing: true
  51. # golint:
  52. # min-confidence: 0
  53. # gocyclo:
  54. # min-complexity: 10
  55. # maligned:
  56. # suggest-new: true
  57. # dupl:
  58. # threshold: 100
  59. # depguard:
  60. # list-type: blacklist
  61. # packages:
  62. # # logging is allowed only by logutils.Log, logrus
  63. # # is allowed to use only in logutils package
  64. # - github.com/sirupsen/logrus
  65. # misspell:
  66. # locale: US
  67. # lll:
  68. # line-length: 140
  69. # goimports:
  70. # local-prefixes: github.com/golangci/golangci-lint
  71. # gocritic:
  72. # enabled-tags:
  73. # - performance
  74. # - style
  75. # - experimental
  76. # disabled-checks:
  77. # - wrapperFunc
  78. # - commentFormatting # https://github.com/go-critic/go-critic/issues/755
  79. service:
  80. golangci-lint-version: 1.19.x