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
Many other reformatting tools (black, rustfmt, etc) provide a configurable option for maximum line length. Maybe just needs something similar, and then it could make better decisions about whether to place statements like the above one onto one line or multiple lines.
The text was updated successfully, but these errors were encountered:
I definitely agree that the current situation is not great. --fmt is pretty bad, which is why it's still --unstable. I have a feeling that making it better would be pretty complicated, and require a lot of concerted effort.
The
just --fmt
command will take nicely formatted code with a reasonable maximum line length, and turn it into a very long unreadable line.For example, if I try to format this using
just --fmt
:it will get reformatted to this mess:
Many other reformatting tools (black, rustfmt, etc) provide a configurable option for maximum line length. Maybe just needs something similar, and then it could make better decisions about whether to place statements like the above one onto one line or multiple lines.
The text was updated successfully, but these errors were encountered: