KT-16558 Add space before parentheses config
This commit is contained in:
committed by
Dmitry Jemerov
parent
c4fc0f3808
commit
c6acc4c5be
@@ -0,0 +1,9 @@
|
||||
fun some() {
|
||||
try {
|
||||
|
||||
} catch (e: Exception) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_CATCH_PARENTHESES
|
||||
@@ -0,0 +1,9 @@
|
||||
fun some() {
|
||||
try {
|
||||
|
||||
} catch(e: Exception) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_CATCH_PARENTHESES
|
||||
@@ -0,0 +1,9 @@
|
||||
fun some() {
|
||||
try {
|
||||
|
||||
} catch (e: Exception) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_CATCH_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
for (i in 0..42) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_FOR_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
for(i in 0..42) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_FOR_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
for (i in 0..42) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_FOR_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
if (true) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_IF_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
if(true) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_IF_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
if (true) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_IF_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
when (true) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_WHEN_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
when(true) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_WHEN_PARENTHESES
|
||||
@@ -0,0 +1,7 @@
|
||||
fun some() {
|
||||
when (true) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_WHEN_PARENTHESES
|
||||
@@ -0,0 +1,11 @@
|
||||
fun some() {
|
||||
while (true) {
|
||||
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
} while (true)
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_WHILE_PARENTHESES
|
||||
@@ -0,0 +1,11 @@
|
||||
fun some() {
|
||||
while(true) {
|
||||
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
} while(true)
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_WHILE_PARENTHESES
|
||||
@@ -0,0 +1,11 @@
|
||||
fun some() {
|
||||
while (true) {
|
||||
|
||||
}
|
||||
|
||||
do {
|
||||
|
||||
} while (true)
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_WHILE_PARENTHESES
|
||||
Reference in New Issue
Block a user