Add new `Lint/RedundantWithIndex` cop by koic · Pull Request #4708 · rubocop/rubocop

Feature This cop checks for unneeded with_index. % cat /tmp/example.rb # frozen_string_literal: true ary.each_with_index do |v| v end ary.each.with_index do |v| v end % bundle exec rubocop /t...