.golangci.toml 1.4 KB

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