.golangci.yml 926 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # This file contains configuration options for golangci linter
  2. # Any options can be override creating a .golangci-.yml file
  3. # in deeper levels of the hierarchy path
  4. # linter settings
  5. linter-settings:
  6. go-vet:
  7. # report about shadowed variables
  8. check-shadowing: true
  9. maligned:
  10. # print struct with more effective memory layout or not, false by default
  11. suggest-new: true
  12. # enable or disable specific linters
  13. linters:
  14. enable:
  15. - interfacer
  16. - maligned
  17. - gosec
  18. - nakedret
  19. - stylecheck
  20. - goconst
  21. - gocyclo
  22. # List of regexps of issue texts to exclude
  23. issues:
  24. # Excluding configuration per path
  25. exclude-rules:
  26. - path: _test\.go
  27. linters:
  28. - gocyclo
  29. - errcheck
  30. - dupl
  31. - gosec
  32. run:
  33. # skip the following files
  34. skip-files:
  35. - ".gen\\.go$"
  36. - "_gen\\.go$"
  37. # skip the following directories
  38. skip-dirs:
  39. - "(^|/)example($|/)"