.golangci.yml 792 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. version: "2"
  2. linters:
  3. enable:
  4. - forbidigo
  5. - godot
  6. - misspell
  7. - revive
  8. - testifylint
  9. settings:
  10. forbidigo:
  11. forbid:
  12. - pattern: ^fmt\.Print.*$
  13. msg: Do not commit print statements.
  14. godot:
  15. exclude:
  16. # Ignore "See: URL".
  17. - 'See:'
  18. capital: true
  19. misspell:
  20. locale: US
  21. exclusions:
  22. generated: lax
  23. presets:
  24. - comments
  25. - common-false-positives
  26. - legacy
  27. - std-error-handling
  28. paths:
  29. - third_party$
  30. - builtin$
  31. - examples$
  32. formatters:
  33. enable:
  34. - gofmt
  35. - goimports
  36. settings:
  37. goimports:
  38. local-prefixes:
  39. - github.com/prometheus/procfs
  40. exclusions:
  41. generated: lax
  42. paths:
  43. - third_party$
  44. - builtin$
  45. - examples$