From 563474fcd9159574bdcac6b2952fe14a396be9da Mon Sep 17 00:00:00 2001 From: DrAlexD Date: Thu, 5 Oct 2023 19:05:59 +0300 Subject: [PATCH] - fix --- .../src/main/kotlin/AnotherTest.kt | 23 +++++++++---------- .../gradle-kotlin-dsl/src/main/kotlin/Test.kt | 12 +++++----- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/examples/gradle-kotlin-dsl/src/main/kotlin/AnotherTest.kt b/examples/gradle-kotlin-dsl/src/main/kotlin/AnotherTest.kt index 9694c4bf1c..f694d51893 100644 --- a/examples/gradle-kotlin-dsl/src/main/kotlin/AnotherTest.kt +++ b/examples/gradle-kotlin-dsl/src/main/kotlin/AnotherTest.kt @@ -1,16 +1,15 @@ package whate.ver fun String.createPluginConfig() { - val pluginConfig = TomlDecoder.decode( - serializer(), - fakeFileNode, - DecoderConf() - ) - pluginConfig.configLocation = this.toPath() - pluginConfig.prop1 = property1 - // comment1 - pluginConfig.configLocation2 = this.toPath() - // comment2 - pluginConfig.prop2 = property2 + val pluginConfig = TomlDecoder.decode( + serializer(), + fakeFileNode, + DecoderConf() + ) + pluginConfig.configLocation = this.toPath() + pluginConfig.prop1 = property1 + // comment1 + pluginConfig.configLocation2 = this.toPath() + // comment2 + pluginConfig.prop2 = property2 } - diff --git a/examples/gradle-kotlin-dsl/src/main/kotlin/Test.kt b/examples/gradle-kotlin-dsl/src/main/kotlin/Test.kt index ccd95988e8..a6908961a8 100644 --- a/examples/gradle-kotlin-dsl/src/main/kotlin/Test.kt +++ b/examples/gradle-kotlin-dsl/src/main/kotlin/Test.kt @@ -1,13 +1,13 @@ package incorrect class incorrectname: Exception() { - fun INCORRECT_FUNCTION() { - throw Exception() - } + fun INCORRECT_FUNCTION() { + throw Exception() + } - // fun myCommentedFunction() { - // } + // fun myCommentedFunction() { + // } - val Incorrect_Val = 5 + val Incorrect_Val = 5 }