You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed one behaviour that I find a bit surprising: when chaining method calls with blocks, indentation is removed. For example, take the following file:
Dir.glob("*").eachdo |f|
putsfend
With Ruby 3.0.1 and rufo 0.13.0, this becomes:
Dir.glob("*").eachdo |f|
putsfend
In this particular case it doesn't matter at all, but for longer chains of method calls that use longer blocks, I think it becomes progressively important to let the depth of indentation correspond to the "depth" of the calls.
Do you agree with this opinion, or am I missing a reason behind the decision to remove the indentation?
The text was updated successfully, but these errors were encountered:
Thanks for your work on rufo—it's great!
I've noticed one behaviour that I find a bit surprising: when chaining method calls with blocks, indentation is removed. For example, take the following file:
With Ruby 3.0.1 and rufo 0.13.0, this becomes:
In this particular case it doesn't matter at all, but for longer chains of method calls that use longer blocks, I think it becomes progressively important to let the depth of indentation correspond to the "depth" of the calls.
Do you agree with this opinion, or am I missing a reason behind the decision to remove the indentation?
The text was updated successfully, but these errors were encountered: