rootstrap/ios-base

View on GitHub

Showing 3 of 22 total issues

Function multipartFormData has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
Open

class func multipartFormData(
_ multipartForm: MultipartFormData,
params: Any,
rootKey: String
) {
Severity: Minor
Found in ios-base/Networking/Services/APIClient.swift - About 2 hrs to fix

Function handleCustomError has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

class func handleCustomError(_ code: Int?, dictionary: [String: Any]) -> NSError? {
if
let messageDict = dictionary["errors"] as? [String: [String]],
let firstKey = messageDict.keys.first
{
Severity: Minor
Found in ios-base/Networking/Services/APIClient.swift - About 1 hr to fix

    Function validateSerializationErrors has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    fileprivate class func validateSerializationErrors(
    response: HTTPURLResponse,
    error: Error?,
    data: Data,
    success: @escaping SuccessCallback,
    Severity: Minor
    Found in ios-base/Networking/Services/APIClient.swift - About 25 mins to fix
    Severity
    Category
    Status
    Source
    Language