Does anyone know how to persuade scala-fmt not to insert a newline before a `.`? I'm getting things like:
scala.util
.Try { ... }
/cc @olafurpg
That definitely covers at least some of the cases, and maybe all. Thanks for the tip - I'll make my code a bit less point-free! ;)
-
-
I admit Scalafmt is sometimes a bit too eager to break into a chain. If you want full control over it you can use https://github.com/scalameta/scalafmt/pull/1037 …
-
It wasn't so hard for me to add the points, and most cases didn't seem like contrived names. But I've thumbs-upped the PR.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.