Skip to content

Commit b50fd28

Browse files
authored
Merge pull request #614 from allevato/move-config
Move `Configuration` into the `SwiftFormat` module.
2 parents 12f4006 + d816117 commit b50fd28

File tree

61 files changed

+70
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+70
-76
lines changed

Documentation/Development.md

Lines changed: 4 additions & 12 deletions

Package.swift

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ let package = Package(
2929
name: "SwiftFormat",
3030
targets: ["SwiftFormat", "SwiftFormatConfiguration"]
3131
),
32+
// TODO: Remove this product after the 509 release.
3233
.library(
3334
name: "SwiftFormatConfiguration",
3435
targets: ["SwiftFormatConfiguration"]
@@ -49,22 +50,24 @@ let package = Package(
4950
.target(
5051
name: "SwiftFormat",
5152
dependencies: [
52-
"SwiftFormatConfiguration",
5353
.product(name: "Markdown", package: "swift-markdown"),
5454
.product(name: "SwiftSyntax", package: "swift-syntax"),
5555
.product(name: "SwiftOperators", package: "swift-syntax"),
5656
.product(name: "SwiftParser", package: "swift-syntax"),
5757
.product(name: "SwiftParserDiagnostics", package: "swift-syntax"),
5858
]
5959
),
60+
// TODO: Remove this target after the 509 release.
6061
.target(
61-
name: "SwiftFormatConfiguration"
62+
name: "SwiftFormatConfiguration",
63+
dependencies: [
64+
"SwiftFormat"
65+
]
6266
),
6367
.target(
6468
name: "_SwiftFormatTestSupport",
6569
dependencies: [
6670
"SwiftFormat",
67-
"SwiftFormatConfiguration",
6871
.product(name: "SwiftOperators", package: "swift-syntax"),
6972
]
7073
),
@@ -106,17 +109,12 @@ let package = Package(
106109
name: "swift-format",
107110
dependencies: [
108111
"SwiftFormat",
109-
"SwiftFormatConfiguration",
110112
.product(name: "ArgumentParser", package: "swift-argument-parser"),
111113
.product(name: "SwiftSyntax", package: "swift-syntax"),
112114
.product(name: "SwiftParser", package: "swift-syntax"),
113115
]
114116
),
115117

116-
.testTarget(
117-
name: "SwiftFormatConfigurationTests",
118-
dependencies: ["SwiftFormatConfiguration"]
119-
),
120118
.testTarget(
121119
name: "SwiftFormatPerformanceTests",
122120
dependencies: [
@@ -130,7 +128,6 @@ let package = Package(
130128
name: "SwiftFormatTests",
131129
dependencies: [
132130
"SwiftFormat",
133-
"SwiftFormatConfiguration",
134131
"_SwiftFormatTestSupport",
135132
.product(name: "Markdown", package: "swift-markdown"),
136133
.product(name: "SwiftOperators", package: "swift-syntax"),

Sources/SwiftFormat/API/SwiftFormatter.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import Foundation
1414
import SwiftDiagnostics
15-
import SwiftFormatConfiguration
1615
import SwiftOperators
1716
import SwiftSyntax
1817

Sources/SwiftFormat/API/SwiftLinter.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import Foundation
1414
import SwiftDiagnostics
15-
import SwiftFormatConfiguration
1615
import SwiftOperators
1716
import SwiftSyntax
1817

Sources/SwiftFormat/Core/Context.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Foundation
14-
import SwiftFormatConfiguration
1514
import SwiftOperators
1615
import SwiftSyntax
1716
import SwiftParser

Sources/SwiftFormat/PrettyPrint/Comment.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Foundation
14-
import SwiftFormatConfiguration
1514
import SwiftSyntax
1615

1716
extension StringProtocol {

0 commit comments

Comments
 (0)