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 {
40
40
let targetNames = argExtractor. extractOption ( named: " target " )
41
41
let targetsToFormat = targetNames. isEmpty ? context. package . targets : try context. package . targets ( named: targetNames)
42
42
43
- let configurationFilePath = argExtractor. extractOption ( named: " configuration " ) . first
43
+ let configurationFilePath = argExtractor. extractOption ( named: " swift-format- configuration" ) . first
44
44
45
45
let sourceCodeTargets = targetsToFormat. compactMap { $0 as? SourceModuleTarget }
46
46
@@ -60,7 +60,7 @@ extension FormatPlugin: XcodeCommandPlugin {
60
60
let swiftFormatTool = try context. tool ( named: " swift-format " )
61
61
62
62
var argExtractor = ArgumentExtractor ( arguments)
63
- let configurationFilePath = argExtractor. extractOption ( named: " configuration " ) . first
63
+ let configurationFilePath = argExtractor. extractOption ( named: " swift-format- configuration" ) . first
64
64
65
65
try format (
66
66
tool: swiftFormatTool,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ extension LintPlugin: CommandPlugin {
41
41
let targetNames = argExtractor. extractOption ( named: " target " )
42
42
43
43
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
45
45
46
46
let sourceCodeTargets = targetsToFormat. compactMap { $0 as? SourceModuleTarget }
47
47
@@ -60,7 +60,7 @@ extension LintPlugin: XcodeCommandPlugin {
60
60
func performCommand( context: XcodeProjectPlugin . XcodePluginContext , arguments: [ String ] ) throws {
61
61
let swiftFormatTool = try context. tool ( named: " swift-format " )
62
62
var argExtractor = ArgumentExtractor ( arguments)
63
- let configurationFilePath = argExtractor. extractOption ( named: " configuration " ) . first
63
+ let configurationFilePath = argExtractor. extractOption ( named: " swift-format- configuration" ) . first
64
64
65
65
try lint (
66
66
tool: swiftFormatTool,
You can’t perform that action at this time.
0 commit comments