Skip to content

Commit 130f0ca

Browse files
author
SimplyDanny
committed
🔄 Workflow in 'realm/SwiftLint' synced local 'Plugins/' with remote 'Plugins/'
1 parent ca09fc3 commit 130f0ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎Plugins/SwiftLintCommandPlugin/SwiftLintCommandPlugin.swift‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@ struct SwiftLintCommandPlugin: CommandPlugin {
2626
let targets = targetNames.isEmpty
2727
? context.package.targets
2828
: try context.package.targets(named: targetNames)
29-
if targets.isEmpty || !commandsNotExpectingPaths.isDisjoint(with: arguments) {
30-
try run(with: context, arguments: arguments)
29+
let remainingArguments = argExtractor.remainingArguments
30+
if targets.isEmpty || !commandsNotExpectingPaths.isDisjoint(with: remainingArguments) {
31+
try run(with: context, arguments: remainingArguments)
3132
return
3233
}
3334
for target in targets {
3435
guard let target = target.sourceModule else {
3536
Diagnostics.warning("Target '\(target.name)' is not a source module; skipping it")
3637
continue
3738
}
38-
try run(in: target.directory.string, for: target.name, with: context, arguments: arguments)
39+
try run(in: target.directory.string, for: target.name, with: context, arguments: remainingArguments)
3940
}
4041
}
4142

0 commit comments

Comments
 (0)