Closed ktaylor-fetch closed 4 months ago
I can not reproduce this problem with Ktlint CLI version. The problem might be caused by Spotless, or by any configuration that you have not mentioned above. Please add stacktrace of exception, and your .editorconfig
settings. Please also fix the indentation of your code sample if that is relevant for reproducing the problem.
@ktaylor-fetch Can you provide me with a reproducer?
Closed as no reproducer has been added. Issue will be reopened once reproducer has been added.
Expected Behavior
Whitespace should be removed
Observed Behavior
Ran: ./gradlew spotlessApply --log-level=debug
Output:
Steps to Reproduce
`package com.fetchrewards.fetchrewards
import androidx.compose.material.Button import androidx.compose.material.Text import androidx.compose.runtime.Composable
@Composable fun ShouldNotBreak() { Button(onClick = {}) { Text(text = "The space in front of the brace is causing a ktlint rule to throw an exception") } }`
Your Environment
.editorconfig
settings