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.

77 lines
1.3 KiB

4 years ago
4 years ago
  1. service:
  2. golangci-lint-version: 1.51.x
  3. run:
  4. timeout: 2m
  5. skip-dirs:
  6. - vendor
  7. linters-settings:
  8. govet:
  9. check-shadowing: true
  10. revive:
  11. min-confidence: 0.1
  12. rules:
  13. - name: package-comments
  14. disabled: true
  15. maligned:
  16. suggest-new: true
  17. goconst:
  18. min-len: 2
  19. min-occurrences: 2
  20. misspell:
  21. locale: US
  22. lll:
  23. line-length: 140
  24. gocritic:
  25. enabled-tags:
  26. - performance
  27. - style
  28. - experimental
  29. disabled-checks:
  30. - hugeParam
  31. linters:
  32. enable:
  33. - bodyclose
  34. - megacheck
  35. - revive
  36. - govet
  37. - unconvert
  38. - megacheck
  39. - gas
  40. - gocyclo
  41. - dupl
  42. - misspell
  43. - unparam
  44. - typecheck
  45. - ineffassign
  46. - stylecheck
  47. - exportloopref
  48. - nakedret
  49. - gosimple
  50. - prealloc
  51. - unused
  52. ## format - fill free to fix
  53. # - errcheck
  54. # - gofmt
  55. # - goimports
  56. fast: false
  57. disable-all: true
  58. issues:
  59. exclude-rules:
  60. # - Fix and remove
  61. - text: "at least one file in a package should have a package comment"
  62. linters:
  63. - stylecheck
  64. # - Fix and remove
  65. - text: "should have a package comment, unless it's in another file for this package"
  66. linters:
  67. - revive
  68. - path: _test\.go
  69. linters:
  70. - gosec
  71. - dupl
  72. exclude-use-default: false