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.

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