Do you have a chain like `util.Try { ... } .map { ... } .filter(...)`? If so, break it down into a sequence of variables. Scalafmt enforces that style on select chains.
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! ;)
- Show replies
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.