Skip to content

Commit 792bc14

Browse files
committed
Merge branch 'master' into hotfix/JLLeitschuhgh-562
* master: Fix formatting
2 parents a9a2aca + ea7b32d commit 792bc14

File tree

1 file changed

+23
-25
lines changed
  • plugin/src/test/kotlin/org/jlleitschuh/gradle/ktlint/testdsl

1 file changed

+23
-25
lines changed

plugin/src/test/kotlin/org/jlleitschuh/gradle/ktlint/testdsl/testDsl.kt

+23-25
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,13 @@ class TestProject(
6060
}
6161

6262
fun withCleanKotlinScript() {
63-
//@formatter:off
6463
createSourceFile(
6564
"kotlin-script.kts",
6665
"""
6766
|println("zzz")
6867
|
6968
""".trimMargin()
7069
)
71-
//@formatter:on
7270
}
7371

7472
fun withFailingKotlinScript() {
@@ -147,34 +145,34 @@ fun projectSetup(
147145
//language=Groovy
148146
it.resolve("build.gradle").writeText(
149147
"""
150-
plugins {
151-
id 'org.jetbrains.kotlin.$kotlinPluginType'
152-
id 'org.jlleitschuh.gradle.ktlint'
153-
}
154-
155-
repositories {
156-
mavenCentral()
157-
}
158-
159-
""".trimIndent()
148+
|plugins {
149+
| id 'org.jetbrains.kotlin.$kotlinPluginType'
150+
| id 'org.jlleitschuh.gradle.ktlint'
151+
|}
152+
|
153+
|repositories {
154+
| mavenCentral()
155+
|}
156+
|
157+
""".trimMargin()
160158
)
161159

162160
//language=Groovy
163161
it.resolve("settings.gradle").writeText(
164162
"""
165-
pluginManagement {
166-
repositories {
167-
mavenLocal()
168-
gradlePluginPortal()
169-
}
170-
171-
plugins {
172-
id 'org.jetbrains.kotlin.$kotlinPluginType' version '$kotlinPluginVersion'
173-
id 'org.jlleitschuh.gradle.ktlint' version '${TestVersions.pluginVersion}'
174-
}
175-
}
176-
177-
""".trimIndent()
163+
|pluginManagement {
164+
| repositories {
165+
| mavenLocal()
166+
| gradlePluginPortal()
167+
| }
168+
|
169+
| plugins {
170+
| id 'org.jetbrains.kotlin.$kotlinPluginType' version '$kotlinPluginVersion'
171+
| id 'org.jlleitschuh.gradle.ktlint' version '${TestVersions.pluginVersion}'
172+
| }
173+
|}
174+
|
175+
""".trimMargin()
178176
)
179177
}
180178

0 commit comments

Comments
 (0)