Skip to content

Commit

Permalink
Sort targets (#5927)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny authored Dec 30, 2024
1 parent 592b8eb commit 6a1569f
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ let package = Package(
.package(url: "https://github.com/ileitch/swift-filename-matcher", .upToNextMinor(from: "2.0.0")),
],
targets: [
.executableTarget(
name: "swiftlint",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"CollectionConcurrencyKit",
"SwiftLintFramework",
"SwiftyTextTable",
],
swiftSettings: swiftFeatures + strictConcurrency
),
.target(
name: "SwiftLintFramework",
dependencies: [
"SwiftLintBuiltInRules",
"SwiftLintCore",
"SwiftLintExtraRules",
"CollectionConcurrencyKit",
],
swiftSettings: swiftFeatures
),
.plugin(
name: "SwiftLintBuildToolPlugin",
capability: .buildTool(),
Expand All @@ -56,23 +76,6 @@ let package = Package(
),
dependencies: swiftLintPluginDependencies
),
.executableTarget(
name: "swiftlint",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"CollectionConcurrencyKit",
"SwiftLintFramework",
"SwiftyTextTable",
],
swiftSettings: swiftFeatures + strictConcurrency
),
.testTarget(
name: "CLITests",
dependencies: [
"SwiftLintFramework",
],
swiftSettings: swiftFeatures
),
.target(
name: "SwiftLintCore",
dependencies: [
Expand Down Expand Up @@ -101,84 +104,73 @@ let package = Package(
dependencies: ["SwiftLintCore"],
swiftSettings: swiftFeatures + strictConcurrency
),
.target(
name: "SwiftLintFramework",
dependencies: [
"SwiftLintBuiltInRules",
"SwiftLintCore",
"SwiftLintExtraRules",
"CollectionConcurrencyKit",
],
swiftSettings: swiftFeatures
),
.target(name: "DyldWarningWorkaround"),
.target(
name: "TestHelpers",
.macro(
name: "SwiftLintCoreMacros",
dependencies: [
"SwiftLintFramework"
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
],
path: "Tests/TestHelpers",
swiftSettings: swiftFeatures
path: "Source/SwiftLintCoreMacros",
swiftSettings: swiftFeatures + strictConcurrency
),
.testTarget(
name: "FrameworkTests",
name: "BuiltInRulesTests",
dependencies: [
"SwiftLintBuiltInRules",
"SwiftLintFramework",
"TestHelpers",
"SwiftLintCoreMacros",
],
exclude: [
"Resources",
],
swiftSettings: swiftFeatures
),
.testTarget(
name: "GeneratedTests",
name: "CLITests",
dependencies: [
"SwiftLintFramework",
"TestHelpers",
],
swiftSettings: swiftFeatures
),
.testTarget(
name: "IntegrationTests",
name: "ExtraRulesTests",
dependencies: [
"SwiftLintFramework",
"TestHelpers",
],
exclude: [
"default_rule_configurations.yml"
],
swiftSettings: swiftFeatures
),
.testTarget(
name: "BuiltInRulesTests",
name: "FrameworkTests",
dependencies: [
"SwiftLintBuiltInRules",
"SwiftLintFramework",
"TestHelpers",
"SwiftLintCoreMacros",
],
exclude: [
"Resources",
],
swiftSettings: swiftFeatures
),
.testTarget(
name: "ExtraRulesTests",
name: "GeneratedTests",
dependencies: [
"SwiftLintFramework",
"TestHelpers",
],
swiftSettings: swiftFeatures
),
.macro(
name: "SwiftLintCoreMacros",
.testTarget(
name: "IntegrationTests",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
"SwiftLintFramework",
"TestHelpers",
],
path: "Source/SwiftLintCoreMacros",
swiftSettings: swiftFeatures + strictConcurrency
exclude: [
"default_rule_configurations.yml"
],
swiftSettings: swiftFeatures
),
.testTarget(
name: "MacroTests",
Expand All @@ -188,6 +180,14 @@ let package = Package(
],
swiftSettings: swiftFeatures
),
.target(
name: "TestHelpers",
dependencies: [
"SwiftLintFramework"
],
path: "Tests/TestHelpers",
swiftSettings: swiftFeatures
),
]
)

Expand Down

0 comments on commit 6a1569f

Please sign in to comment.