Skip to content

Commit a360142

Browse files
committed
Fix linting issues
1 parent 2eefd53 commit a360142

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

Sources/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ swift_library(
104104
srcs = [
105105
"Shared/Benchmark.swift",
106106
"Shared/Constants.swift",
107+
"Shared/JobPool.swift",
107108
"Shared/PeripheryError.swift",
108109
"Shared/ProjectKind.swift",
109110
"Shared/PropertyTypeSanitizer.swift",
@@ -194,7 +195,6 @@ swift_library(
194195
"Indexer/Indexer.swift",
195196
"Indexer/InfoPlistIndexer.swift",
196197
"Indexer/InfoPlistParser.swift",
197-
"Indexer/JobPool.swift",
198198
"Indexer/SourceFileCollector.swift",
199199
"Indexer/SwiftIndexer.swift",
200200
"Indexer/XCDataModelIndexer.swift",

Sources/Configuration/Configuration.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ public final class Configuration {
140140
@Setting(key: "bazel_index_store", defaultValue: nil)
141141
public var bazelIndexStore: FilePath?
142142

143-
144143
// Non user facing.
145144
public var guidedSetup: Bool = false
146145
public var projectRoot: FilePath = .init()
@@ -212,7 +211,7 @@ public final class Configuration {
212211
$externalTestCaseClasses, $verbose, $quiet, $disableUpdateCheck, $strict, $indexStorePath, $skipBuild,
213212
$skipSchemesValidation, $cleanBuild, $buildArguments, $xcodeListArguments, $relativeResults, $jsonPackageManifestPath,
214213
$retainCodableProperties, $retainEncodableProperties, $baseline, $writeBaseline, $writeResults, $genericProjectConfig,
215-
$bazel, $bazelFilter, $bazelIndexStore
214+
$bazel, $bazelFilter, $bazelIndexStore,
216215
]
217216

218217
private func buildFilenameMatchers(with patterns: [String]) -> [FilenameMatcher] {

Sources/Indexer/InfoPlistIndexer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ final class InfoPlistIndexer: Indexer {
88
enum PlistError: Error {
99
case failedToParse(path: FilePath, underlyingError: Error)
1010
}
11+
1112
private let infoPlistFiles: Set<FilePath>
1213
private let graph: SynchronizedSourceGraph
1314
private let logger: ContextualLogger

Sources/Indexer/SourceFileCollector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Configuration
22
import Foundation
33
import Logger
4+
import Shared
45
import SourceGraph
56
import SwiftIndexStore
67
import SystemPackage
7-
import Shared
88

99
public struct SourceFileCollector {
1010
private let indexStorePaths: Set<FilePath>

Sources/Indexer/XCDataModelIndexer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ final class XCDataModelIndexer: Indexer {
88
enum XCDataModelError: Error {
99
case failedToParse(path: FilePath, underlyingError: Error)
1010
}
11+
1112
private let files: Set<FilePath>
1213
private let graph: SynchronizedSourceGraph
1314
private let logger: ContextualLogger

Sources/Indexer/XibIndexer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ final class XibIndexer: Indexer {
88
enum XibError: Error {
99
case failedToParse(path: FilePath, underlyingError: Error)
1010
}
11+
1112
private let xibFiles: Set<FilePath>
1213
private let graph: SynchronizedSourceGraph
1314
private let logger: ContextualLogger

Sources/SourceGraph/Mutators/ProtocolConformanceReferenceBuilder.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ final class ProtocolConformanceReferenceBuilder: SourceGraphMutator {
7575
return result
7676
})
7777
// Perform mutations on the graph based on the calculated references
78-
newReferences.forEach {
79-
if let parent = $0.parent {
80-
graph.add($0, from: parent)
78+
for newReference in newReferences {
79+
if let parent = newReference.parent {
80+
graph.add(newReference, from: parent)
8181
}
8282
}
8383

0 commit comments

Comments
 (0)