-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 013
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.
TCPSocket resource leak — TCPSocket must be closed after use. Use a block form or ensure close is called in a ensure block.
sock = TCPSocket.new("example.com", 80)
sock << "GET / HTTP/1.0"Tip
This rule can significantly improve performance in hot code paths.
Note
See bench results at bench/cat-013/