.golangci.yml 654 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. linters-settings:
  2. govet:
  3. check-shadowing: true
  4. maligned:
  5. suggest-new: true
  6. dupl:
  7. threshold: 200
  8. goconst:
  9. min-len: 3
  10. min-occurrences: 2
  11. forbidigo:
  12. forbid:
  13. - ^print.*$
  14. - 'fmt\.Print.*'
  15. gocognit:
  16. min-complexity: 65 # This is super high value. We should gradually lower it to 30-40.
  17. linters:
  18. enable:
  19. - gofmt
  20. - goimports
  21. - bodyclose
  22. - dupl
  23. - forbidigo
  24. - gocognit
  25. - gocritic
  26. - goimports
  27. - gosec
  28. - nakedret
  29. #- nolintlint
  30. - revive
  31. - stylecheck
  32. - unconvert
  33. - unparam
  34. disable:
  35. - maligned
  36. - lll
  37. - gochecknoinits
  38. - gochecknoglobals