KT-16558 Add space before parentheses config

This commit is contained in:
Andrius Semionovas
2017-06-01 23:12:03 +03:00
committed by Dmitry Jemerov
parent c4fc0f3808
commit c6acc4c5be
19 changed files with 211 additions and 7 deletions
@@ -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
+7
View File
@@ -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
+7
View File
@@ -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
+7
View File
@@ -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
+11
View File
@@ -0,0 +1,11 @@
fun some() {
while (true) {
}
do {
} while (true)
}
// SET_FALSE: SPACE_BEFORE_WHILE_PARENTHESES