.golangci.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. run:
  2. timeout: 5m
  3. deadline: 10m
  4. linters-settings:
  5. govet:
  6. check-shadowing: false
  7. golint:
  8. min-confidence: 0
  9. gocyclo:
  10. min-complexity: 99
  11. maligned:
  12. suggest-new: true
  13. dupl:
  14. threshold: 100
  15. goconst:
  16. min-len: 2
  17. min-occurrences: 3
  18. misspell:
  19. locale: US
  20. goimports:
  21. local-prefixes: github.com/Shopify/sarama
  22. gocritic:
  23. enabled-tags:
  24. - diagnostic
  25. - experimental
  26. - opinionated
  27. - performance
  28. - style
  29. disabled-checks:
  30. - wrapperFunc
  31. - ifElseChain
  32. funlen:
  33. lines: 300
  34. statements: 300
  35. linters:
  36. disable-all: true
  37. enable:
  38. - bodyclose
  39. - deadcode
  40. - depguard
  41. - exportloopref
  42. - dogsled
  43. # - dupl
  44. - errcheck
  45. - funlen
  46. - gochecknoinits
  47. # - goconst
  48. # - gocritic
  49. - gocyclo
  50. - gofmt
  51. - goimports
  52. # - golint
  53. - gosec
  54. # - gosimple
  55. - govet
  56. # - ineffassign
  57. - misspell
  58. # - nakedret
  59. - nilerr
  60. # - scopelint
  61. - staticcheck
  62. - structcheck
  63. # - stylecheck
  64. - typecheck
  65. - unconvert
  66. - unused
  67. - varcheck
  68. - whitespace
  69. issues:
  70. exclude:
  71. - "G404: Use of weak random number generator"
  72. # maximum count of issues with the same text. set to 0 for unlimited. default is 3.
  73. max-same-issues: 0