Rails/IndexWith false positive #338
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Expected behavior
Don't auto-correct
inject
on unsafe cases ofStyle/EachWithObject
+Rails/IndexWith
.Actual behavior
It replaces
inject
withindex_with
, but with an undefined variable.Steps to reproduce the problem
rubocop -a
where
result.count
raises exception.RuboCop version
The text was updated successfully, but these errors were encountered: