You should indent like this:

    The Scala language encourages a startling amount of nested scopes andlogical blocks (function values and such). Do yourself a favor and don’tpenalize yourself syntactically for opening up a new block. Coming fromJava, this style does take a bit of getting used to, but it is wellworth the effort.

    When it is absolutely necessary to wrap an expression across more thanone line, each successive line should be indented two spaces from thefirst. Also remember that Scala requires each “wrap line” to eitherhave an unclosed parenthetical or to end with an infix method in whichthe right parameter is not given:

    Without this trailing method, Scala will infer a semi-colon at the endof a line which was intended to wrap, throwing off the compilationsometimes without even so much as a warning.

    Methods with Numerous Arguments

    This way, all parameters line up, but you don’t need to re-align them ifyou change the name of the method later on.

    Great care should be taken to avoid these sorts of invocations well intothe length of the line. More specifically, such an invocation should beavoided when each parameter would have to be indented more than 50spaces to achieve alignment. In such cases, the invocation itself shouldbe moved to the next line and indented two spaces: