-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 006
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
info• Confidence:high• Auto-fix: ✅
Tip
This rule supports auto-fix via --fix
hash.keys.each → each_key — Use each_key instead of .keys.each to avoid allocating an intermediate array of keys.
hash.keys.each { |k| ... }hash.each_key { |k| ... }Note
See bench results at bench/cat-006/