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.

85 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. issues:
  44. exclude-rules:
  45. - linters:
  46. - lll
  47. source: "https://"
  48. linters-settings:
  49. dogsled:
  50. max-blank-identifiers: 3
  51. maligned:
  52. # print struct with more effective memory layout or not, false by default
  53. suggest-new: true
  54. # govet:
  55. # check-shadowing: true
  56. # golint:
  57. # min-confidence: 0
  58. # gocyclo:
  59. # min-complexity: 10
  60. # maligned:
  61. # suggest-new: true
  62. # dupl:
  63. # threshold: 100
  64. # depguard:
  65. # list-type: blacklist
  66. # packages:
  67. # # logging is allowed only by logutils.Log, logrus
  68. # # is allowed to use only in logutils package
  69. # - github.com/sirupsen/logrus
  70. # misspell:
  71. # locale: US
  72. # lll:
  73. # line-length: 140
  74. # goimports:
  75. # local-prefixes: github.com/golangci/golangci-lint
  76. # gocritic:
  77. # enabled-tags:
  78. # - performance
  79. # - style
  80. # - experimental
  81. # disabled-checks:
  82. # - wrapperFunc
  83. # - commentFormatting # https://github.com/go-critic/go-critic/issues/755