We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SwiftFormatRules
generate-pipeline-plugin
1 parent 4d1086e commit f3b6192Copy full SHA for f3b6192
Plugins/generate-pipeline-plugin/GeneratePipelinePlugin.swift
@@ -49,6 +49,10 @@ struct GeneratePipelinePlugin: BuildToolPlugin {
49
.appending("GeneratedSources")
50
.appending(generatedSourceName)
51
52
+ let rulesSources =
53
+ (try context.package.targets(named: ["SwiftFormatRules"]).first as? SwiftSourceModuleTarget)?
54
+ .sourceFiles.map(\.path) ?? []
55
+
56
return [
57
.buildCommand(
58
displayName: "Generating \(generatedSourceName) for \(target.name)",
@@ -61,6 +65,7 @@ struct GeneratePipelinePlugin: BuildToolPlugin {
61
65
"--target",
62
66
target.name,
63
67
],
68
+ inputFiles: rulesSources,
64
69
outputFiles: [outputFile]
70
)
71
]
0 commit comments