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

Rufo needs two passes to fix hash indenting #327

Open
perryn opened this issue Jul 16, 2024 · 0 comments · May be fixed by #329
Open

Rufo needs two passes to fix hash indenting #327

perryn opened this issue Jul 16, 2024 · 0 comments · May be fixed by #329

Comments

@perryn
Copy link

perryn commented Jul 16, 2024

Given a file test.rb that contains

    {
      foo: "bar",
      bar: "foo",
    }

then rufo test.rb returns an exit status of '3' and changes the file to

{
          foo: "bar",
          bar: "foo",
        }

if I run rufo test.rb AGAIN it returns an exits status of `3' and changes the file to

{
  foo: "bar",
  bar: "foo",
}

if I run rufo test.rb yet again if finally returns an exit status of '0' and makes no changes

I would expect rufo to change the file to the final form on the first run

@perryn perryn changed the title Rufo needs two passes to has indenting Rufo needs two passes to fix hash indenting Jul 16, 2024
kzkn added a commit that referenced this issue Sep 1, 2024
@kzkn kzkn linked a pull request Sep 1, 2024 that will close this issue
kzkn added a commit that referenced this issue Sep 1, 2024
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

Successfully merging a pull request may close this issue.

1 participant