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
Layout/DotPosition
with EnforcedStyle: trailing
false positive
#10184
Comments
This might be fixed by #10168, can you try getting the HEAD of rubocop and running it? |
Thanks for getting back! I saw that, tried testing on HEAD and still had the problem. |
We're seeing the same issue - throwing var = {
key: 'some',
key1: 'other'
}.compact |
#10207 was merged today, all the examples in this issue are fixed now! |
Layout/DotPosition
false positive with EnforcedStyle: trailing
Layout/DotPosition
false positive with EnforcedStyle: trailing
Layout/DotPosition
with EnforcedStyle: trailing
false positive
Is a release containing this fix planned for shortly? I'd love to use the update instead of changing all Gemfiles. |
Yeah, the next bugfix release is planned. Please wait a moment. Thank you. |
I just released 1.22.3. |
This commit that updated support of heredocs does not support our usage of them.
We call a method with a heredoc as an argument and call methods on the result.
For example, prior to this commit this code did not register an offense but after it does.
This also has changed behavior for multi-line method calls with non-heredoc arguments
Expected behavior
When the below spec is added to the "Trailing dots style" context in dot_position_spec.rb we would expect it to pass.
Actual behavior
The spec fails
Steps to reproduce the problem
Run rubocop on a file containing either of these snippets
or
RuboCop version
The text was updated successfully, but these errors were encountered: