Showing 5 of 5 total issues
Method api
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
def api(method, attributes, options = {}) prefix = options.fetch(:prefix, default_prefix) attributes = { prefix => attributes } unless prefix.empty? or attributes.empty? uri = options.fetch(:uri, default_uri)
- Read upRead up
Method api
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def api(method, attributes, options = {}) prefix = options.fetch(:prefix, default_prefix) attributes = { prefix => attributes } unless prefix.empty? or attributes.empty? uri = options.fetch(:uri, default_uri)
Method api_response_inspect
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def api_response_inspect(method, uri, response, attributes, after, before)
Consider simplifying this complex logical expression. Open
Open
raise ApplicationHasInconsistentData.new(id, user_key) if (service_id.nil? || id.nil? || user_key.nil? || service_id=="" || id=="" || user_key=="")
Method save!
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def save!(attributes) api_do_post(attributes, prefix: :service_tokens) do |result| status = result[:response].status
- Read upRead up