File tree Expand file tree Collapse file tree
src/test/java/com/facebook/ktfmt/format Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,6 +130,12 @@ kotlin {
130130 }
131131}
132132
133+ ktfmt {
134+ trailingCommaManagementStrategy.set(
135+ com.ncorti.ktfmt.gradle.TrailingCommaManagementStrategy .ONLY_ADD
136+ )
137+ }
138+
133139group = " com.facebook"
134140
135141version = rootProject.version
Original file line number Diff line number Diff line change @@ -3170,7 +3170,6 @@ class FormatterTest {
31703170
31713171 @Test
31723172 fun `multiline trimIndent and trimMargin inside of function call` () {
3173- defaultTestFormattingOptions = META_FORMAT
31743173 assertThatFormatting(
31753174 """
31763175 |foo(
@@ -3197,6 +3196,7 @@ class FormatterTest {
31973196 |"""
31983197 .trimMargin()
31993198 )
3199+ .withOptions(META_FORMAT )
32003200 .isEqualTo(
32013201 """
32023202 |foo(
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ com-google-code-gson-gson = "2.10.1"
1313# plugins
1414gradlePlugin-dokka = " 2.0.0"
1515gradlePlugin-intelliJPlatform = " 2.6.0"
16- gradlePlugin-ktfmt = " 0.22 .0"
16+ gradlePlugin-ktfmt = " 0.24 .0"
1717gradlePlugin-nexusPublish = " 2.0.0"
1818gradlePlugin-shadowJar = " 9.0.2"
1919
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ dependencies {
5151 implementation(project(" :ktfmt" ))
5252}
5353
54+ ktfmt {
55+ trailingCommaManagementStrategy.set(
56+ com.ncorti.ktfmt.gradle.TrailingCommaManagementStrategy .ONLY_ADD
57+ )
58+ }
59+
5460intellijPlatform {
5561 projectName.set(" ktfmt_idea_plugin" )
5662
Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ kotlin {
3939 jvmToolchain(javaVersion.toInt())
4040}
4141
42+ ktfmt {
43+ trailingCommaManagementStrategy.set(
44+ com.ncorti.ktfmt.gradle.TrailingCommaManagementStrategy .ONLY_ADD
45+ )
46+ }
47+
4248tasks {
4349 test { useJUnit() }
4450
You can’t perform that action at this time.
0 commit comments