Hi,
I am implementing ktlint in our kmm app and works to some degree.
But seeing some weird behaviour. Strangely, this is allowed
Copy code
data class DeviceMeasurementStatus(
val sensorType: DeviceSensorType,
val measurementMessage:
String,
val measurementState: MeasurementState
)
but not this:
Copy code
data class DeviceMeasurementStatus(
val sensorType: DeviceSensorType,
val measurementMessage:
String,
val measurementState: MeasurementState
)
Shouldn’t both these formatting be flagged as an error?
s
Sha Sha Chu
01/28/2021, 5:11 PM
I'm not at my computer, but I don't think we have a rule enforcing that types should be on the same line as the variable. The second is flagging simply due to indentation
t
tapchicoma
01/28/2021, 9:12 PM
add
--verbose
flag to see which rule complains in the second case