You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.1 KiB

  1. run:
  2. deadline: 1m
  3. linters:
  4. enable-all: true
  5. disable:
  6. - gocyclo
  7. - golint
  8. - maligned
  9. - errcheck
  10. - staticcheck
  11. - interfacer
  12. - unconvert
  13. - goconst
  14. - unparam
  15. - nakedret
  16. - lll
  17. - gochecknoglobals
  18. - gocritic
  19. - gochecknoinits
  20. - scopelint
  21. - stylecheck
  22. # linters-settings:
  23. # govet:
  24. # check-shadowing: true
  25. # golint:
  26. # min-confidence: 0
  27. # gocyclo:
  28. # min-complexity: 10
  29. # maligned:
  30. # suggest-new: true
  31. # dupl:
  32. # threshold: 100
  33. # goconst:
  34. # min-len: 2
  35. # min-occurrences: 2
  36. # depguard:
  37. # list-type: blacklist
  38. # packages:
  39. # # logging is allowed only by logutils.Log, logrus
  40. # # is allowed to use only in logutils package
  41. # - github.com/sirupsen/logrus
  42. # misspell:
  43. # locale: US
  44. # lll:
  45. # line-length: 140
  46. # goimports:
  47. # local-prefixes: github.com/golangci/golangci-lint
  48. # gocritic:
  49. # enabled-tags:
  50. # - performance
  51. # - style
  52. # - experimental
  53. # disabled-checks:
  54. # - wrapperFunc
  55. # - commentFormatting # https://github.com/go-critic/go-critic/issues/755