.golangci.yml 1.0 KB

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