Fixes indentation for defs, vals and vars with annotation on same line, final defs and vals/vars, and several other keywords for vals/vars (like private/lazy/...).
Example (added to testfile.scala):
@annotation.tailrec def someFunction =
some stuff here
final def foo2 =
some stuff here
final val someValue =
some stuff here
private val someValue =
some stuff here
lazy val someValue =
some stuff here
@annotation.foo val someValue =
some stuff here
private[this] def followingFunction = oneliner
Before fix, this was indented to:
@annotation.tailrec def someFunction =
some stuff here
final def foo2 =
some stuff here
final val someValue =
some stuff here
private val someValue =
some stuff here
lazy val someValue =
some stuff here
@annotation.foo val someValue =
some stuff here
private[this] def followingFunction = oneliner
Fixes indentation for defs, vals and vars with annotation on same line, final defs and vals/vars, and several other keywords for vals/vars (like private/lazy/...).
Example (added to testfile.scala):
Before fix, this was indented to: