.golangci.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # This file contains configuration options for golangci-lint.
  2. # https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
  3. run:
  4. # Timeout for analysis.
  5. timeout: 5m
  6. linters:
  7. enable-all: true
  8. disable:
  9. - cyclop
  10. - depguard
  11. - dupl
  12. - errname
  13. - errorlint
  14. - exhaustive
  15. - exhaustruct
  16. - forcetypeassert
  17. - funlen
  18. - gochecknoglobals
  19. - gocognit
  20. - goconst
  21. - gocyclo
  22. - godot
  23. - goerr113
  24. - gomnd
  25. - gosec
  26. - inamedparam
  27. - ireturn
  28. - lll
  29. - maintidx
  30. - nakedret
  31. - nestif
  32. - nlreturn
  33. - noctx
  34. - nonamedreturns
  35. - paralleltest
  36. - perfsprint
  37. - revive
  38. - stylecheck
  39. - testableexamples
  40. - testpackage
  41. - thelper
  42. - tparallel
  43. - unparam
  44. - usestdlibvars
  45. - varnamelen
  46. - wastedassign
  47. - whitespace
  48. - wrapcheck
  49. - wsl
  50. # Deprecated linters
  51. - deadcode
  52. - exhaustivestruct
  53. - golint
  54. - ifshort
  55. - interfacer
  56. - maligned
  57. - nosnakecase
  58. - scopelint
  59. - structcheck
  60. - varcheck
  61. linters-settings:
  62. # Show all issues from a linter.
  63. max-issues-per-linter: 0
  64. # Show all issues with the same text.
  65. max-same-issues: 0