Atul Gupta
05/30/2023, 8:36 PMktlint formats below code
when (System.currentTimeMillis()) {
1L -> "".lowercase()
@Suppress("DEPRECATION")
2L -> "".toLowerCase()
3L -> "".toLowerCaseAsciiOnly()
}
to
when (System.currentTimeMillis()) {
1L -> "".lowercase()
@Suppress("DEPRECATION")
2L,
-> "".toLowerCase()
3L -> "".toLowerCaseAsciiOnly()
}
is that correct? (Failing rule is standard:annotation). Error line /Users/atulgup/Learning/ktlint/ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/MultiLineIfElseRule.kt:161:10: Expected newline (standard:annotation)
Ran this in ktlint-root project using ./gradlew ktlintFormatAtul Gupta
05/30/2023, 8:42 PM