-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 014
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
info• Confidence:high• Auto-fix: ✅
Tip
This rule supports auto-fix via --fix
File.read → streaming — Use File.each_line or block-based I/O instead of File.read for large files to avoid loading everything into memory.
content = File.read("large.log")
content.each_line { |line| ... }File.each_line("large.log") { |line| ... }Note
See bench results at bench/cat-014/