rufo icon indicating copy to clipboard operation
rufo copied to clipboard

Rufo needs two passes to fix hash indenting

Open perryn opened this issue 1 year ago • 0 comments

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 avatar Jul 16 '24 02:07 perryn