.golangci.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. run:
  2. skip-files:
  3. - encode_optype.go
  4. - ".*_test\\.go$"
  5. linters-settings:
  6. govet:
  7. enable-all: true
  8. disable:
  9. - shadow
  10. linters:
  11. enable-all: true
  12. disable:
  13. - dogsled
  14. - dupl
  15. - exhaustive
  16. - exhaustivestruct
  17. - errorlint
  18. - forbidigo
  19. - funlen
  20. - gci
  21. - gochecknoglobals
  22. - gochecknoinits
  23. - gocognit
  24. - gocritic
  25. - gocyclo
  26. - godot
  27. - godox
  28. - goerr113
  29. - gofumpt
  30. - gomnd
  31. - gosec
  32. - ifshort
  33. - lll
  34. - makezero
  35. - nakedret
  36. - nestif
  37. - nlreturn
  38. - paralleltest
  39. - testpackage
  40. - thelper
  41. - wrapcheck
  42. - interfacer
  43. - lll
  44. - nakedret
  45. - nestif
  46. - nlreturn
  47. - testpackage
  48. - wsl
  49. - varnamelen
  50. - nilnil
  51. - ireturn
  52. - govet
  53. - forcetypeassert
  54. - cyclop
  55. - containedctx
  56. - revive
  57. - nosnakecase
  58. - exhaustruct
  59. - depguard
  60. issues:
  61. exclude-rules:
  62. # not needed
  63. - path: /*.go
  64. text: "ST1003: should not use underscores in package names"
  65. linters:
  66. - stylecheck
  67. - path: /*.go
  68. text: "don't use an underscore in package name"
  69. linters:
  70. - golint
  71. - path: rtype.go
  72. linters:
  73. - golint
  74. - stylecheck
  75. - path: error.go
  76. linters:
  77. - staticcheck
  78. # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
  79. max-issues-per-linter: 0
  80. # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
  81. max-same-issues: 0