knowndecimal/fulfil

View on GitHub

Showing 83 of 83 total issues

Fulfil::Client::ResponseError has no descriptive comment
Open

class ResponseError < StandardError; end
Severity: Minor
Found in lib/fulfil/client.rb by reek

Fulfil::HttpError::AuthorizationRequired has no descriptive comment
Open

class AuthorizationRequired < HttpError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::HttpError::NotAccepted has no descriptive comment
Open

class NotAccepted < HttpError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::RateLimitExceeded has no descriptive comment
Open

class RateLimitExceeded < Error; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::Error has no descriptive comment
Open

class Error < StandardError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::HttpError::UnprocessableEntity has no descriptive comment
Open

class UnprocessableEntity < HttpError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::HttpError::TooManyRequests has no descriptive comment
Open

class TooManyRequests < HttpError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::ResponseParser has no descriptive comment
Open

module ResponseParser
Severity: Minor
Found in lib/fulfil/response_parser.rb by reek

Fulfil::Client::UnknownHTTPError has no descriptive comment
Open

class UnknownHTTPError < StandardError; end
Severity: Minor
Found in lib/fulfil/client.rb by reek

Fulfil::HttpError::Forbidden has no descriptive comment
Open

class Forbidden < HttpError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::HttpError::MethodNotAllowed has no descriptive comment
Open

class MethodNotAllowed < HttpError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::HttpError::PaymentRequired has no descriptive comment
Open

class PaymentRequired < HttpError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::HttpError::BadRequest has no descriptive comment
Open

class BadRequest < HttpError; end
Severity: Minor
Found in lib/fulfil/error.rb by reek

Fulfil::Model#fetch_associated calls 'model.dig(*source_keys)' 2 times
Open

models.map { |model| model.dig(*source_keys) }.flatten.compact.uniq
 
return [] if associated_ids.none?
 
associated_models =
Severity: Minor
Found in lib/fulfil/model.rb by reek

Fulfil::Model has no descriptive comment
Open

class Model
Severity: Minor
Found in lib/fulfil/model.rb by reek

Fulfil::ResponseParser#self.group calls 'kv_tuples[0]' 2 times
Open

[group_key, mapped_value_field(value: kv_tuples[0][1])]
else
id = kv_tuples[0]
Severity: Minor
Found in lib/fulfil/response_parser.rb by reek

Fulfil::ResponseParser#self.mapped_value_field calls 'value['__class__']' 2 times
Open

return value unless value.is_a?(Hash) && value['__class__']
 
json_class = value['__class__']
Severity: Minor
Found in lib/fulfil/response_parser.rb by reek

Fulfil::ResponseParser::UnhandledTypeError has no descriptive comment
Open

class UnhandledTypeError < StandardError
Severity: Minor
Found in lib/fulfil/response_parser.rb by reek

Fulfil::Client::ConnectionError has no descriptive comment
Open

class ConnectionError < StandardError; end
Severity: Minor
Found in lib/fulfil/client.rb by reek

Fulfil::Query#build_search_term calls 'value.class' 2 times
Open

case value.class.name
when 'Array'
[[key, 'in', value]]
when 'Fixnum', 'Integer'
[[key, '=', value]]
Severity: Minor
Found in lib/fulfil/query.rb by reek
Severity
Category
Status
Source
Language