False positive for Lint/RedundantWithIndex
when calling with_index without each beforehand
#12769
Labels
Lint/RedundantWithIndex
when calling with_index without each beforehand
#12769
This cop is marked as safe, however some code can result in offenses that when autocorrected break the code.
Expected behavior
No offense for the following:
Actual behavior
Autocorrection to the following:
This will raise when executed:
undefined method `ary'
. It will also promtLint/UselessAssignment
on the first line since that variable is now unused.RuboCop version
The text was updated successfully, but these errors were encountered: