File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,14 @@ var targets: [Target] = [
123
123
124
124
if buildOnlyTests {
125
125
products = [ ]
126
+ let allowedNames : Set < String > = [ " _SwiftFormatTestSupport " , " _GenerateSwiftFormat " ]
126
127
targets = targets. compactMap { target in
127
- guard target. isTest || target. name == " _SwiftFormatTestSupport " else {
128
+ guard target. isTest || allowedNames . contains ( target. name) else {
128
129
return nil
129
130
}
130
- target. dependencies = target. dependencies. filter { dependency in
131
- if case . byNameItem( name : " _SwiftFormatTestSupport " , _) = dependency {
132
- return true
131
+ target. dependencies = target. dependencies. filter {
132
+ if case . byNameItem( let name , _) = $0 {
133
+ return allowedNames . contains ( name )
133
134
}
134
135
return false
135
136
}
You can’t perform that action at this time.
0 commit comments