public class ExpressionBodySyntax
Functions which only contain a return
statement can be collapsed to an expression body. This shortens and
cleans up the code.
fun stuff() { return moreStuff() .getStuff() .stuffStuff() }
Modifier and Type | Class and Description |
---|---|
static class |
ExpressionBodySyntax.Companion |
Modifier and Type | Field and Description |
---|---|
static ExpressionBodySyntax.Companion |
Companion |
static java.lang.String |
INCLUDE_LINE_WRAPPING |
Constructor and Description |
---|
ExpressionBodySyntax(io.gitlab.arturbosch.detekt.api.Config config)
Functions which only contain a
return statement can be collapsed to an expression body. This shortens and
cleans up the code. |
ExpressionBodySyntax()
Functions which only contain a
return statement can be collapsed to an expression body. This shortens and
cleans up the code. |
Modifier and Type | Method and Description |
---|---|
io.gitlab.arturbosch.detekt.api.Issue |
getIssue() |
void |
visitNamedFunction(org.jetbrains.kotlin.psi.KtNamedFunction function) |
public static java.lang.String INCLUDE_LINE_WRAPPING
public static ExpressionBodySyntax.Companion Companion
public ExpressionBodySyntax(io.gitlab.arturbosch.detekt.api.Config config)
Functions which only contain a return
statement can be collapsed to an expression body. This shortens and
cleans up the code.
fun stuff() { return moreStuff() .getStuff() .stuffStuff() }
public ExpressionBodySyntax()
Functions which only contain a return
statement can be collapsed to an expression body. This shortens and
cleans up the code.
fun stuff() { return moreStuff() .getStuff() .stuffStuff() }