.golangci.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. - dogsled
  42. # - dupl
  43. - errcheck
  44. - funlen
  45. # - gocritic
  46. - gocyclo
  47. - gofmt
  48. - goimports
  49. # - golint
  50. - gosec
  51. # - gosimple
  52. - govet
  53. # - ineffassign
  54. - interfacer
  55. # - misspell
  56. # - nakedret
  57. # - scopelint
  58. # - staticcheck
  59. - structcheck
  60. # - stylecheck
  61. - typecheck
  62. - unconvert
  63. - unused
  64. - varcheck
  65. - whitespace
  66. # - goconst
  67. - gochecknoinits
  68. issues:
  69. exclude:
  70. - consider giving a name to these results
  71. - include an explanation for nolint directive
  72. - Potential Integer overflow made by strconv.Atoi result conversion to int16/32
  73. - Use of weak random number generator
  74. - TLS MinVersion too low