.golangci.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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