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.

64 lines
1.2 KiB

  1. version: "2"
  2. linters:
  3. default: none
  4. enable:
  5. - durationcheck
  6. - forcetypeassert
  7. - gocritic
  8. - gomodguard
  9. - govet
  10. - ineffassign
  11. - misspell
  12. - revive
  13. - staticcheck
  14. - unconvert
  15. - unused
  16. - usetesting
  17. - whitespace
  18. settings:
  19. misspell:
  20. locale: US
  21. staticcheck:
  22. checks:
  23. - all
  24. - -SA1008
  25. - -SA1019
  26. - -SA4000
  27. - -SA9004
  28. - -ST1000
  29. - -ST1005
  30. - -ST1016
  31. - -U1000
  32. exclusions:
  33. generated: lax
  34. rules:
  35. - linters:
  36. - forcetypeassert
  37. path: _test\.go
  38. - path: (.+)\.go$
  39. text: 'empty-block:'
  40. - path: (.+)\.go$
  41. text: 'unused-parameter:'
  42. - path: (.+)\.go$
  43. text: 'dot-imports:'
  44. - path: (.+)\.go$
  45. text: should have a package comment
  46. - path: (.+)\.go$
  47. text: error strings should not be capitalized or end with punctuation or a newline
  48. paths:
  49. - third_party$
  50. - builtin$
  51. - examples$
  52. issues:
  53. max-issues-per-linter: 100
  54. max-same-issues: 100
  55. formatters:
  56. enable:
  57. - gofumpt
  58. - goimports
  59. exclusions:
  60. generated: lax
  61. paths:
  62. - third_party$
  63. - builtin$
  64. - examples$