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

Bug in Style/MultilineTernaryOperator #10711

Closed
bquorning opened this issue Jun 13, 2022 · 0 comments · Fixed by #10713
Closed

Bug in Style/MultilineTernaryOperator #10711

bquorning opened this issue Jun 13, 2022 · 0 comments · Fixed by #10713
Labels

Comments

@bquorning
Copy link
Contributor

@bquorning bquorning commented Jun 13, 2022

Running ./exe/rubocop --only=Style/MultilineTernaryOperator test.rb on a file test.rb:

foo ? bar :
  baz

gives me this error

An error occurred while Style/MultilineTernaryOperator cop was inspecting /Users/bquorning/Code/rubocop/rubocop/test.rb:1:0.

RuboCop version

$ ❯ ./exe/rubocop -V
1.30.1 (using Parser 3.1.2.0, rubocop-ast 1.18.0, running on ruby 2.7.6 x86_64-darwin20)
  - rubocop-performance 1.14.1
  - rubocop-rake 0.6.0
  - rubocop-rspec 2.11.1
@bquorning bquorning added the bug label Jun 13, 2022
koic added a commit to koic/rubocop that referenced this issue Jun 13, 2022
Fixes rubocop#10711.

This PR fixes an error for Style/MultilineTernaryOperator
when the false branch is on a separate line.
ydah added a commit to ydah/rubocop that referenced this issue Jun 13, 2022
koic added a commit to koic/rubocop that referenced this issue Jun 13, 2022
Fixes rubocop#10711.

This PR fixes an error for `Style/MultilineTernaryOperator`
when the false branch is on a separate line.
koic added a commit that referenced this issue Jun 13, 2022
…ternary_operator

[Fix #10711] Fix an error for `Style/MultilineTernaryOperator`
ydah added a commit to ydah/rubocop that referenced this issue Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant