-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance/MapCompact autocorrect is too greedy #238
Labels
bug
Something isn't working
Comments
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
May 4, 2021
…ompact` Fixes rubocop#238. This PR fixes an incorrect auto-correct for `Performance/MapCompact` when using `map do ... end.compact`.
8 tasks
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
May 4, 2021
…ompact` Fixes rubocop#238. This PR fixes an incorrect auto-correct for `Performance/MapCompact` when invoking a method after `map { ... }.compact`.
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
May 4, 2021
…ompact` Fixes rubocop#238. This PR fixes an incorrect auto-correct for `Performance/MapCompact` when invoking a method after `map { ... }.compact` on the same line.
koic
added a commit
to koic/rubocop-performance
that referenced
this issue
May 4, 2021
…ompact` Fixes rubocop#238. This PR fixes an incorrect auto-correct for `Performance/MapCompact` when invoking a method after `map { ... }.compact` on the same line.
koic
added a commit
that referenced
this issue
May 4, 2021
…rformance_map_compact [Fix #238] Fix an incorrect auto-correct for `Performance/MapCompact`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran the autocorrect on this code and it removed the trailing
end
as well as the.join("\n")
. This results in a syntax error.The text was updated successfully, but these errors were encountered: