-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 007
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
hint• Confidence:high• Auto-fix: ✅
Tip
This rule supports auto-fix via --fix
reverse.each → reverse_each — Use reverse_each instead of reverse + each to avoid allocating a reversed copy.
ary.reverse.each { |x| ... }ary.reverse_each { |x| ... }Note
See bench results at bench/cat-007/