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

when is Outdented from case in Assignment #251

Open
rjkaes opened this issue Nov 12, 2020 · 0 comments
Open

when is Outdented from case in Assignment #251

rjkaes opened this issue Nov 12, 2020 · 0 comments

Comments

@rjkaes
Copy link

rjkaes commented Nov 12, 2020

With a block of code:

foo = case a
      when b
        :b
      when c
        :c
      else
        :e
      end

rufo will reformat it as:

foo = case a
  when b
    :b
  when c
    :c
  else
    :e
  end

regardless of the state of align_case_when.

I believe the original formatting should have been maintained. In general, if rufo is configured to align when with case, it should be true in an assignment.

rufo 0.12.0
ruby 2.6.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant