Skip to content

Instantly share code, notes, and snippets.

@desophos
Last active March 16, 2022 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save desophos/19d53e9019ca78bb5adc01ac660f0f1c to your computer and use it in GitHub Desktop.
Save desophos/19d53e9019ca78bb5adc01ac660f0f1c to your computer and use it in GitHub Desktop.
version = "3.4.3"
runner.dialect = scala3
maxColumn = 80
newlines.source = fold
// original
for { foobar <- LongClassName(database).longMethodName() } yield doSomething(foobar)
// formatted
for { foobar <- LongClassName(database).longMethodName() } yield doSomething(
foobar
)
// desired output
for {
foobar <- LongClassName(database).longMethodName()
} yield doSomething(foobar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment