You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure indentation is correct when removing braces.
If the first indentation of the region is greater than the indentation
of the enclosing region, we use it to indent the whole region.
Otherwise we use the incremented indentation of the enclosing region.
```scala
def foo = {
x // we replicate indentation of x downward in region
y
}
```
```scala
def foo = {
x // indentation of x is incorrect, we increment enclosing indentation
y
}
```
A bigger indentation than the required one is permitted except
just after a closing brace.
```scala
def bar = {
x
.toString // permitted indentation
def foo = {
}
bar // must be unindented, to not fall into the body of foo
}
```
0 commit comments