Ruby

Ruby

Made by DeepSource

Use reverse_each instead of reverse.each RB-PR1019

Performance
Major
Autofix

reverse_each is more efficient than reverse.each. Read more here.

Bad practice

[].reverse.each

Recommended

[].reverse_each