mirror of
https://github.com/apple/pkl.git
synced 2026-05-25 16:19:20 +02:00
Reformat Kotlin code (#1560)
ktfmt has much improved how it formats Kotlin code. Unfortunately, this means that whenever we touch a single line in a Kotlin file, we get a _lot_ more changes thanks to ratcheting now picking up this file for formatting. This PR just reformats every single Kotlin file so we don't have to deal with this churn in future PRs that touch Kotlin code.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
|
||||
* Copyright © 2024-2026 Apple Inc. and the Pkl project authors. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,19 +25,19 @@ class AnalyzeImportsTest : AbstractTest() {
|
||||
writeFile(
|
||||
"build.gradle",
|
||||
"""
|
||||
plugins {
|
||||
id "org.pkl-lang"
|
||||
}
|
||||
plugins {
|
||||
id "org.pkl-lang"
|
||||
}
|
||||
|
||||
pkl {
|
||||
analyzers {
|
||||
imports {
|
||||
analyzeMyImports {
|
||||
sourceModules = ["input.pkl"]
|
||||
}
|
||||
pkl {
|
||||
analyzers {
|
||||
imports {
|
||||
analyzeMyImports {
|
||||
sourceModules = ["input.pkl"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
.trimIndent(),
|
||||
)
|
||||
@@ -51,20 +51,20 @@ class AnalyzeImportsTest : AbstractTest() {
|
||||
writeFile(
|
||||
"build.gradle",
|
||||
"""
|
||||
plugins {
|
||||
id "org.pkl-lang"
|
||||
}
|
||||
plugins {
|
||||
id "org.pkl-lang"
|
||||
}
|
||||
|
||||
pkl {
|
||||
analyzers {
|
||||
imports {
|
||||
analyzeMyImports {
|
||||
sourceModules = ["input.pkl"]
|
||||
outputFile = file("myFile.pcf")
|
||||
}
|
||||
pkl {
|
||||
analyzers {
|
||||
imports {
|
||||
analyzeMyImports {
|
||||
sourceModules = ["input.pkl"]
|
||||
outputFile = file("myFile.pcf")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
.trimIndent(),
|
||||
)
|
||||
@@ -78,20 +78,20 @@ class AnalyzeImportsTest : AbstractTest() {
|
||||
writeFile(
|
||||
"build.gradle",
|
||||
"""
|
||||
plugins {
|
||||
id "org.pkl-lang"
|
||||
}
|
||||
plugins {
|
||||
id "org.pkl-lang"
|
||||
}
|
||||
|
||||
pkl {
|
||||
analyzers {
|
||||
imports {
|
||||
analyzeMyImports {
|
||||
sourceModules = ["input.pkl"]
|
||||
outputFormat = "json"
|
||||
}
|
||||
pkl {
|
||||
analyzers {
|
||||
imports {
|
||||
analyzeMyImports {
|
||||
sourceModules = ["input.pkl"]
|
||||
outputFormat = "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
.trimIndent(),
|
||||
)
|
||||
@@ -99,8 +99,8 @@ class AnalyzeImportsTest : AbstractTest() {
|
||||
assertThat(result.output)
|
||||
.contains(
|
||||
"""
|
||||
{
|
||||
"imports": {
|
||||
{
|
||||
"imports": {
|
||||
"""
|
||||
.trimIndent()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user