.golangci.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. run:
  2. tests: false
  3. linters:
  4. disable-all: true
  5. enable:
  6. - asciicheck
  7. - bidichk
  8. - bodyclose
  9. - containedctx
  10. - contextcheck
  11. - decorder
  12. - depguard
  13. - dogsled
  14. - dupl
  15. - durationcheck
  16. - errcheck
  17. - errchkjson
  18. # FIXME: commented out as it crashes with 1.18 for now
  19. # - errname
  20. - errorlint
  21. - exportloopref
  22. - forbidigo
  23. - funlen
  24. - gci
  25. - gochecknoglobals
  26. - gochecknoinits
  27. - gocognit
  28. - goconst
  29. - gocritic
  30. - gocyclo
  31. - godox
  32. - gofmt
  33. - gofumpt
  34. - goheader
  35. - goimports
  36. - gomnd
  37. - gomoddirectives
  38. - gomodguard
  39. - goprintffuncname
  40. - gosec
  41. - gosimple
  42. - govet
  43. - grouper
  44. - ifshort
  45. - importas
  46. - ineffassign
  47. - lll
  48. - maintidx
  49. - makezero
  50. - misspell
  51. - nakedret
  52. - nilerr
  53. - nilnil
  54. - noctx
  55. - nolintlint
  56. - paralleltest
  57. - prealloc
  58. - predeclared
  59. - promlinter
  60. # FIXME: doesn't support 1.18 yet
  61. # - revive
  62. - rowserrcheck
  63. - sqlclosecheck
  64. - staticcheck
  65. - structcheck
  66. - stylecheck
  67. - tagliatelle
  68. - tenv
  69. - testpackage
  70. - thelper
  71. - tparallel
  72. - typecheck
  73. - unconvert
  74. - unparam
  75. - unused
  76. - varcheck
  77. - varnamelen
  78. - wastedassign
  79. - whitespace