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")
|
||||
.in(PROPERTY, FUN)
|
||||
.notForType(BLOCK)
|
||||
.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();
|
||||
}
|
||||
|
||||
public void testFunctionWithNewLineBrace() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testGetterAndSetter() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user