Longer Functions Prefer Long Body
For long functions we should very much prefer full body syntax even if its returning a single item that takes up many lines.
Example Prefer
fun getSearchTestCases(): List<SimpleSearchTestCase> {
return listOf(
// ...
}
Instead of
fun getSearchTestCases(): List<SimpleSearchTestCase> =
listOf(
// ...
Primary reason why
IntelliJ Move Caret to Code Block Start
does not work without {}
.