-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 028
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
error| Confidence:high| Auto-fix: ❌
Warning
This rule flags real bugs, not just performance issues.
HTTP::Client resource leak — HTTP::Client connections must be closed after use. Use the block form or ensure close is called.
client = HTTP::Client.new("example.com")
response = client.get("/")Tip
This rule can significantly improve performance in hot code paths.
Note
See bench results at bench/cat-028/