From fdea2cae8451cc2e49f12b83e31d422b4c4cefda Mon Sep 17 00:00:00 2001 From: "simonhauck@gmx.de" Date: Mon, 26 Aug 2024 08:24:41 +0200 Subject: [PATCH] #351 align kotlinLangStyle with upstream ktfmt style --- .../src/main/java/com/ncorti/ktfmt/gradle/KtfmtExtension.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin-build/plugin/src/main/java/com/ncorti/ktfmt/gradle/KtfmtExtension.kt b/plugin-build/plugin/src/main/java/com/ncorti/ktfmt/gradle/KtfmtExtension.kt index db0bd74..94762f9 100644 --- a/plugin-build/plugin/src/main/java/com/ncorti/ktfmt/gradle/KtfmtExtension.kt +++ b/plugin-build/plugin/src/main/java/com/ncorti/ktfmt/gradle/KtfmtExtension.kt @@ -85,6 +85,7 @@ abstract class KtfmtExtension { fun kotlinLangStyle() { blockIndent.set(4) continuationIndent.set(4) + manageTrailingCommas.set(true) } internal fun toFormattingOptions(): FormattingOptionsBean =