Good afternoon. Question on an indentation rule: I...
# ktlint
j
Good afternoon. Question on an indentation rule: I have some code that looks like this:
Copy code
val contactRequest = contactRequestPersistence.getContactRequest<SendMailContactAttemptCmd>(command.mailerEventId)
            ?: """
                Error processing ${...}
                ${...} does not exist
                """.trimIndent()
                .run {
                    logger.error { this }
                    throw IllegalStateException(this)
                }
And it’s complaining about the line “”".trimIndent() needing to be indented less indented:
Copy code
val contactRequest = contactRequestPersistence.getContactRequest<SendMailContactAttemptCmd>(command.mailerEventId)
            ?: """
                Error processing ${...}
                ${...} does not exist
            """.trimIndent()
                .run {
                    logger.error { this }
                    throw IllegalStateException(this)
                }
This looks like new behavior in 0.42.1? I’d want those to be be aligned (like the first example). How could I configure ktlint accordingly?
s
Unfortunately that's likely a bug. You can check if it's been filed already or file a new one