Hi, I am implementing ktlint in our kmm app and wo...
# ktlint
s
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
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
add
--verbose
flag to see which rule complains in the second case