Skip to content

Commit

Permalink
Remove exceptions for cyclomatic_complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
glennrfisher committed Apr 10, 2018
1 parent 1373901 commit 79e8789
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Source/DiscoveryV1/Discovery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1470,8 +1470,6 @@ public class Discovery {
}
}

// swiftlint:disable cyclomatic_complexity

/**
Query documents.

Expand Down Expand Up @@ -1629,8 +1627,6 @@ public class Discovery {
}
}

// swiftlint:enable cyclomatic_complexity

/**
Query system notices.

Expand Down
1 change: 0 additions & 1 deletion Source/DiscoveryV1/Models/QueryAggregation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public enum QueryAggregation: Decodable {
case type = "type"
}

// swiftlint:disable:next cyclomatic_complexity
public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
guard let type = try container.decodeIfPresent(String.self, forKey: .type) else {
Expand Down
1 change: 0 additions & 1 deletion Source/SpeechToTextV1/Models/RecognitionSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ public struct RecognitionSettings: JSONEncodable {
}

/** Used internally to serialize a `RecognitionSettings` model to JSON. */
// swiftlint:disable:next cyclomatic_complexity
public func toJSONObject() -> Any {
var json = [String: Any]()
json["action"] = action
Expand Down
1 change: 0 additions & 1 deletion Source/TextToSpeechV1/TextToSpeechDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ internal class TextToSpeechDecoder {
}

// Extract a packet from the ogg stream and store the extracted data within the packet object.
// swiftlint:disable:next cyclomatic_complexity
private func extractPacket(_ streamState: inout ogg_stream_state, _ packet: inout ogg_packet) throws {
// attempt to extract a packet from the ogg stream
while ogg_stream_packetout(&streamState, &packet) == 1 {
Expand Down

0 comments on commit 79e8789

Please sign in to comment.