Joel Hess
09/11/2021, 8:13 PMval 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:
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?Sha Sha Chu
09/11/2021, 10:31 PM