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.

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