scalafmt as a lot of configurability. Maybe there are some options we could tweak?

On 2023-06-23 12:13 PM, Mike Beckerle wrote:
We added scalafmt, and I have not done much coding since that time. Now
that I have, I hate it.

It turns this:

val optURI =
   Misc.getResourceRelativeOption(sysId, baseURI) orElse
     Misc.getResourceRelativeOption(removeInitialUpwardPathSteps(sysId), 
baseURI)

into:

val optURI =
   Misc
     .getResourceRelativeOption(sysId, baseURI)
     .orElse(
       Misc.getResourceRelativeOption(removeInitialUpwardPathSteps(sysId),
baseURI)
     )

This is awful. And you can't override it, because if your code doesn't
conform, it fails a format check.

I suggest we just turn off this scalafmt stuff.


Reply via email to