-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 026
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.
Dir.open resource leak — Dir.open without a block leaks directory handles. Use the block form for automatic closing.
d = Dir.open("/path")
files = d.entriesTip
This rule can significantly improve performance in hot code paths.
Note
See bench results at bench/cat-026/