Skip to content
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

Style/NestedParenthesizedCalls breaks code #7719

Closed
topstone opened this issue Feb 15, 2020 · 1 comment · Fixed by #7730
Closed

Style/NestedParenthesizedCalls breaks code #7719

topstone opened this issue Feb 15, 2020 · 1 comment · Fixed by #7730
Labels

Comments

@topstone
Copy link

topstone commented Feb 15, 2020

sample1.zip

This bug looks like #3063, but not Style/LineEndConcatenation.

sample1.rb :

# frozen_string_literal: true

def nex(fig)
  fig + 1
end

puts(nex \
       5)

Expected behavior

puts(nex (5))

Actual behavior

puts(nex \(5))

Steps to reproduce the problem

  • rubocop --safe-auto-correct sample1.rb

RuboCop version

$ rubocop -V
0.79.0 (using Parser 2.7.0.2, running on ruby 2.7.0 x64-mingw32)
@topstone
Copy link
Author

topstone commented Feb 19, 2020

Thanks!

ty-porter pushed a commit to ty-porter/rubocop that referenced this issue Mar 21, 2020
Neodelf pushed a commit to Neodelf/rubocop that referenced this issue Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants