abarrak/network-client

View on GitHub

Showing 2 of 2 total issues

Class Client has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

class Client
DEFAULT_HEADERS = { 'Accept' => 'application/json', 'Content-Type' => 'application/json' }
 
##
# The success response template.
Severity: Minor
Found in lib/network/client.rb - About 3 hrs to fix

    Method http_request has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    def http_request(request)
    tries_count ||= @tries
    finished = ->() { (tries_count -= 1).zero? }
     
    begin
    Severity: Minor
    Found in lib/network/client.rb - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language