Don't indent { for functions on new lines
This commit is contained in:
@@ -324,6 +324,7 @@ public class JetBlock extends AbstractBlock {
|
|||||||
|
|
||||||
ASTIndentStrategy.forNode("Indent for parts")
|
ASTIndentStrategy.forNode("Indent for parts")
|
||||||
.in(PROPERTY, FUN)
|
.in(PROPERTY, FUN)
|
||||||
|
.notForType(BLOCK)
|
||||||
.set(Indent.getContinuationWithoutFirstIndent()),
|
.set(Indent.getContinuationWithoutFirstIndent()),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fun test()
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fun test()
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -60,6 +60,10 @@ public class JetFormatterTest extends AbstractJetFormatterTest {
|
|||||||
doTest();
|
doTest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testFunctionWithNewLineBrace() throws Exception {
|
||||||
|
doTest();
|
||||||
|
}
|
||||||
|
|
||||||
public void testGetterAndSetter() throws Exception {
|
public void testGetterAndSetter() throws Exception {
|
||||||
doTest();
|
doTest();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user