File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ extension FormatPlugin: CommandPlugin {
4040 let targetNames = argExtractor. extractOption ( named: " target " )
4141 let targetsToFormat = targetNames. isEmpty ? context. package . targets : try context. package . targets ( named: targetNames)
4242
43- let configurationFilePath = argExtractor. extractOption ( named: " configuration " ) . first
43+ let configurationFilePath = argExtractor. extractOption ( named: " swift-format- configuration" ) . first
4444
4545 let sourceCodeTargets = targetsToFormat. compactMap { $0 as? SourceModuleTarget }
4646
@@ -60,7 +60,7 @@ extension FormatPlugin: XcodeCommandPlugin {
6060 let swiftFormatTool = try context. tool ( named: " swift-format " )
6161
6262 var argExtractor = ArgumentExtractor ( arguments)
63- let configurationFilePath = argExtractor. extractOption ( named: " configuration " ) . first
63+ let configurationFilePath = argExtractor. extractOption ( named: " swift-format- configuration" ) . first
6464
6565 try format (
6666 tool: swiftFormatTool,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ extension LintPlugin: CommandPlugin {
4141 let targetNames = argExtractor. extractOption ( named: " target " )
4242
4343 let targetsToFormat = targetNames. isEmpty ? context. package . targets : try context. package . targets ( named: targetNames)
44- let configurationFilePath = argExtractor. extractOption ( named: " configuration " ) . first
44+ let configurationFilePath = argExtractor. extractOption ( named: " swift-format- configuration" ) . first
4545
4646 let sourceCodeTargets = targetsToFormat. compactMap { $0 as? SourceModuleTarget }
4747
@@ -60,7 +60,7 @@ extension LintPlugin: XcodeCommandPlugin {
6060 func performCommand( context: XcodeProjectPlugin . XcodePluginContext , arguments: [ String ] ) throws {
6161 let swiftFormatTool = try context. tool ( named: " swift-format " )
6262 var argExtractor = ArgumentExtractor ( arguments)
63- let configurationFilePath = argExtractor. extractOption ( named: " configuration " ) . first
63+ let configurationFilePath = argExtractor. extractOption ( named: " swift-format- configuration" ) . first
6464
6565 try lint (
6666 tool: swiftFormatTool,
You can’t perform that action at this time.
0 commit comments