.golangci.yml 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. run:
  2. timeout: 5m
  3. linters:
  4. enable:
  5. - asciicheck
  6. - dogsled
  7. - durationcheck
  8. - errcheck
  9. - errorlint
  10. - exportloopref
  11. - gci
  12. - gofmt
  13. - goimports
  14. - gosec
  15. - misspell
  16. - nakedret
  17. - nilerr
  18. - nolintlint
  19. - revive
  20. - wastedassign
  21. linters-settings:
  22. gosec:
  23. # To select a subset of rules to run.
  24. # Available rules: https://github.com/securego/gosec#available-rules
  25. # Default: [] - means include all rules
  26. includes:
  27. - G102
  28. - G106
  29. - G108
  30. - G109
  31. - G111
  32. - G112
  33. - G201
  34. - G203
  35. issues:
  36. exclude-rules:
  37. - linters:
  38. - structcheck
  39. - unused
  40. text: "`data` is unused"
  41. - linters:
  42. - staticcheck
  43. text: "SA1019:"
  44. - linters:
  45. - revive
  46. text: "var-naming:"
  47. - linters:
  48. - revive
  49. text: "exported:"
  50. - path: _test\.go
  51. linters:
  52. - gosec # security is not make sense in tests
  53. - linters:
  54. - revive
  55. path: _test\.go