.golangci.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. run:
  2. timeout: 5m
  3. linters:
  4. disable-all: true
  5. enable:
  6. - bodyclose
  7. - deadcode
  8. - dogsled
  9. - dupl
  10. - durationcheck
  11. - exhaustive
  12. - exportloopref
  13. - gci
  14. - gofmt
  15. - gofumpt
  16. - goimports
  17. - gomoddirectives
  18. - goprintffuncname
  19. - govet
  20. - importas
  21. - ineffassign
  22. - makezero
  23. - misspell
  24. - nakedret
  25. - nilerr
  26. - noctx
  27. - nolintlint
  28. - prealloc
  29. - predeclared
  30. - revive
  31. - rowserrcheck
  32. - sqlclosecheck
  33. - staticcheck
  34. - structcheck
  35. - stylecheck
  36. - tparallel
  37. # - typecheck
  38. - unconvert
  39. - unparam
  40. - unused
  41. - varcheck
  42. - wastedassign
  43. - whitespace
  44. # fixme
  45. # - cyclop
  46. # - errcheck
  47. # - errorlint
  48. # - exhaustivestruct
  49. # - forbidigo
  50. # - forcetypeassert
  51. # - gochecknoglobals
  52. # - gochecknoinits
  53. # - gocognit
  54. # - goconst
  55. # - gocritic
  56. # - gocyclo
  57. # - godot
  58. # - gosec
  59. # - gosimple
  60. # - ifshort
  61. # - lll
  62. # - nlreturn
  63. # - paralleltest
  64. # - scopelint
  65. # - thelper
  66. # - wrapcheck
  67. # unused
  68. # - depguard
  69. # - goheader
  70. # - gomodguard
  71. # don't enable:
  72. # - asciicheck
  73. # - funlen
  74. # - godox
  75. # - goerr113
  76. # - gomnd
  77. # - interfacer
  78. # - maligned
  79. # - nestif
  80. # - testpackage
  81. # - wsl