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.

45 lines
922 B

  1. linters-settings:
  2. gofumpt:
  3. simplify: true
  4. misspell:
  5. locale: US
  6. staticcheck:
  7. checks: ['all', '-ST1005', '-ST1000', '-SA4000', '-SA9004', '-SA1019', '-SA1008', '-U1000', '-ST1016']
  8. linters:
  9. disable-all: true
  10. enable:
  11. - durationcheck
  12. - gocritic
  13. - gofumpt
  14. - goimports
  15. - gomodguard
  16. - govet
  17. - ineffassign
  18. - misspell
  19. - revive
  20. - staticcheck
  21. - typecheck
  22. - unconvert
  23. - unused
  24. - usetesting
  25. - forcetypeassert
  26. - whitespace
  27. issues:
  28. exclude-use-default: false
  29. max-issues-per-linter: 100
  30. max-same-issues: 100
  31. exclude:
  32. - "empty-block:"
  33. - "unused-parameter:"
  34. - "dot-imports:"
  35. - should have a package comment
  36. - error strings should not be capitalized or end with punctuation or a newline
  37. exclude-rules:
  38. # Exclude some linters from running on tests files.
  39. - path: _test\.go
  40. linters:
  41. - forcetypeassert