Skip to content

Commit 6b5d77a

Browse files
committed
Fix Swiftlint warnings
1 parent 52d9a7a commit 6b5d77a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/XCLogParser/logmanifest/LogManifest.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public struct LogManifest {
3232
return try parse(dictionary: logManifestDictionary, atPath: logManifestURL.path)
3333
}
3434

35+
// swiftlint:disable function_body_length
3536
public func parse(dictionary: NSDictionary, atPath path: String) throws -> [LogManifestEntry] {
3637
guard let logs = dictionary["logs"] as? [String: [String: Any]] else {
3738
throw LogError.invalidLogManifest("The file at \(path) is not a valid " +

Sources/XCLogParser/logmanifest/LogManifestModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public struct LogManifestEntry: Encodable {
4747
public let duration: Double
4848
public let type: LogManifestEntryType
4949
public let statistics: LogManifestEntryStatistics
50-
50+
5151
public init(uniqueIdentifier: String, title: String, scheme: String, fileName: String,
5252
timestampStart: TimeInterval, timestampEnd: TimeInterval, duration: Double, type: LogManifestEntryType, statistics: LogManifestEntryStatistics) {
5353
self.uniqueIdentifier = uniqueIdentifier
@@ -69,7 +69,7 @@ public struct LogManifestEntryStatistics: Encodable {
6969
public let highLevelStatus: String
7070
public let totalNumberOfTestFailures: Int
7171
public let totalNumberOfWarnings: Int
72-
72+
7373
public init(totalNumberOfErrors: Int, totalNumberOfAnalyzerIssues: Int, highLevelStatus: String, totalNumberOfTestFailures: Int, totalNumberOfWarnings: Int) {
7474
self.totalNumberOfErrors = totalNumberOfErrors
7575
self.totalNumberOfAnalyzerIssues = totalNumberOfAnalyzerIssues

Tests/XCLogParserTests/LogManifestTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ class LogManifestTests: XCTestCase {
148148
return
149149
}
150150

151-
152151
let startDate = Date(timeIntervalSinceReferenceDate: firstStartedRecording)
153152
let endDate = Date(timeIntervalSinceReferenceDate: firstStoppedRecording)
154153
let expectedDuration = endDate.timeIntervalSince1970 - startDate.timeIntervalSince1970

0 commit comments

Comments
 (0)