Showing 3 of 22 total issues
Function multipartFormData
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
class func multipartFormData( _ multipartForm: MultipartFormData, params: Any, rootKey: String ) {
- Read upRead up
Function handleCustomError
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
class func handleCustomError(_ code: Int?, dictionary: [String: Any]) -> NSError? { if let messageDict = dictionary["errors"] as? [String: [String]], let firstKey = messageDict.keys.first {
Function validateSerializationErrors
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
fileprivate class func validateSerializationErrors( response: HTTPURLResponse, error: Error?, data: Data, success: @escaping SuccessCallback,
- Read upRead up