Formatting: Move '}' to next line in when
This commit is contained in:
@@ -259,6 +259,7 @@ fun createSpacingBuilder(settings: CodeStyleSettings): KotlinSpacingBuilder {
|
||||
afterInside(LBRACE, BLOCK).lineBreakInCode()
|
||||
beforeInside(RBRACE, CLASS_BODY).lineBreakInCode()
|
||||
beforeInside(RBRACE, BLOCK).lineBreakInCode()
|
||||
beforeInside(RBRACE, WHEN).lineBreakInCode()
|
||||
between(RPAR, BODY).spaces(1)
|
||||
|
||||
// if when entry has block, spacing after arrow should be set by lbrace rule
|
||||
|
||||
@@ -28,6 +28,9 @@ fun some(x: Any) {
|
||||
when (true) {
|
||||
|
||||
}
|
||||
|
||||
when {
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
|
||||
@@ -28,6 +28,9 @@ fun some(x: Any) {
|
||||
when (true) {
|
||||
|
||||
}
|
||||
|
||||
when {
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
|
||||
@@ -39,6 +39,8 @@ else->1
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
when {}
|
||||
}
|
||||
|
||||
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
|
||||
Reference in New Issue
Block a user