.golangci.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. issues:
  58. exclude-rules:
  59. # not needed
  60. - path: /*.go
  61. text: "ST1003: should not use underscores in package names"
  62. linters:
  63. - stylecheck
  64. - path: /*.go
  65. text: "don't use an underscore in package name"
  66. linters:
  67. - golint
  68. - path: rtype.go
  69. linters:
  70. - golint
  71. - stylecheck
  72. - path: error.go
  73. linters:
  74. - staticcheck
  75. # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
  76. max-issues-per-linter: 0
  77. # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
  78. max-same-issues: 0