Kirill Zhukov
02/21/2024, 5:49 PMclass MyTests : StringSpec({
"length should return size of string" {
"hello".length shouldBe 5
}
})
Kotest (standard ruleset) formats it as following:
class MyTests : StringSpec(
{
"length should return size of string" {
"hello".length shouldBe 5
}
},
)
How do I prevent it from add a newline for the spec body lambda here? I see there was already this ticket for this from 4 years ago but curious if there's a solution here? What's the rule controlling this behavior?Emil Kantis
02/21/2024, 7:39 PM.editorconfig
ktlint_standard_string-template-indent = disabled
ktlint_standard_multiline-expression-wrapping = disabled
Kirill Zhukov
02/21/2024, 10:15 PMKirill Zhukov
02/21/2024, 10:17 PMKirill Zhukov
02/21/2024, 10:17 PMij_kotlin_allow_trailing_comma_on_call_site = false
disabling this fixes itEmil Kantis
02/21/2024, 10:17 PMKirill Zhukov
02/21/2024, 10:18 PMKirill Zhukov
02/21/2024, 10:18 PMPaul Dingemans
02/22/2024, 5:24 PMKirill Zhukov
02/22/2024, 6:17 PM