rubocop-performance
rubocop-performance copied to clipboard
Improve the `Performance/TimesMap` cop
Describe the solution you'd like
# bad
(0..8).map { |i| i }
0.upto(8).map { |i| i }
# good
Array.new(9) { |i| i }
https://github.com/fastruby/fast-ruby/pull/227