1
0

.golangci.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. run:
  2. concurrency: 2
  3. linters:
  4. enable-all: false
  5. disable-all: true
  6. enable:
  7. - deadcode
  8. - depguard
  9. - errcheck
  10. - gocritic
  11. - gocyclo
  12. - gofmt
  13. - goimports
  14. - revive
  15. - gosimple
  16. - govet
  17. - ineffassign
  18. - lll
  19. - misspell
  20. - nakedret
  21. - staticcheck
  22. - structcheck
  23. - typecheck
  24. - unconvert
  25. - unparam
  26. - unused
  27. - varcheck
  28. linters-settings:
  29. depguard:
  30. list-type: blacklist
  31. include-go-root: true
  32. packages:
  33. # The io/ioutil package has been deprecated.
  34. # https://go.dev/doc/go1.16#ioutil
  35. - io/ioutil
  36. gocritic:
  37. # Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
  38. # Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
  39. enabled-tags:
  40. - diagnostic
  41. - opinionated
  42. - style
  43. disabled-checks:
  44. - paramTypeCombine
  45. - unnamedResult
  46. - whyNoLint
  47. gocyclo:
  48. min-complexity: 16
  49. lll:
  50. line-length: 200
  51. issues:
  52. # golangci hides some golint warnings (the warning about exported things
  53. # withtout documentation for example), this will make it show them anyway.
  54. exclude-use-default: false
  55. exclude:
  56. - should not use dot imports