.golangci.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. run:
  2. concurrency: 2
  3. timeout: 10m
  4. linters:
  5. enable-all: false
  6. disable-all: true
  7. enable:
  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. - nolintlint
  22. - staticcheck
  23. - typecheck
  24. - unconvert
  25. - unparam
  26. - unused
  27. linters-settings:
  28. revive:
  29. rules:
  30. - name: package-comments
  31. disabled: true
  32. depguard:
  33. list-type: denylist
  34. include-go-root: true
  35. packages:
  36. # The io/ioutil package has been deprecated.
  37. # https://go.dev/doc/go1.16#ioutil
  38. - io/ioutil
  39. gocritic:
  40. # Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
  41. # Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
  42. enabled-tags:
  43. - diagnostic
  44. - opinionated
  45. - style
  46. disabled-checks:
  47. - paramTypeCombine
  48. - unnamedResult
  49. - whyNoLint
  50. gocyclo:
  51. min-complexity: 16
  52. lll:
  53. line-length: 200
  54. issues:
  55. # golangci hides some golint warnings (the warning about exported things
  56. # withtout documentation for example), this will make it show them anyway.
  57. exclude-use-default: false
  58. exclude:
  59. - should not use dot imports