drish/hyperb

View on GitHub

Showing 3 of 10 total issues

Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

def initialize(client, path, query = {}, verb = 'GET', body = '', optional_headers = {})
Severity: Minor
Found in lib/hyperb/request.rb - About 45 mins to fix

    Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def initialize(client, path, query = {}, verb = 'GET', body = '')
    Severity: Minor
    Found in lib/hyperb/request.rb - About 35 mins to fix

      Method compose_down has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      def compose_down(params = {})
      raise ArgumentError, 'Invalid arguments.' unless check_arguments(params, 'project')
      path = '/compose/down'
      query = {}
      query[:project] = params[:project] if params.key?(:project)
      Severity: Minor
      Found in lib/hyperb/compose/compose.rb - About 25 mins to fix
      Severity
      Category
      Status
      Source
      Language