Open JohnstonJ opened 2 months ago
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.