alexpeattie/nitlink

View on GitHub
lib/nitlink/response.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [96/80]
Open

  Object.const_defined?(module_name) && Object.const_get(module_name).const_defined?(class_name)
Severity: Minor
Found in lib/nitlink/response.rb by rubocop

Line is too long. [245/80]
Open

third_party_clients = ['Curl::Easy', 'Excon::Response', 'Faraday::Response', 'HTTP::Message', 'HTTP::Response', 'HTTParty::Response', 'Net::HTTPResponse', 'Patron::Response', 'RestClient::Response', 'Typhoeus::Response', 'Unirest::HttpResponse']
Severity: Minor
Found in lib/nitlink/response.rb by rubocop

Missing top-level module documentation comment.
Open

  module ResponseDecorator
Severity: Minor
Found in lib/nitlink/response.rb by rubocop

This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

Example:

# bad
class Person
  # ...
end

# good
# Description/Explanation of Person class
class Person
  # ...
end

Final newline missing.
Open

end
Severity: Minor
Found in lib/nitlink/response.rb by rubocop

Line is too long. [103/80]
Open

  Object.const_get(module_name).const_get(class_name).class_eval { include Nitlink::ResponseDecorator }
Severity: Minor
Found in lib/nitlink/response.rb by rubocop

There are no issues that match your filters.

Category
Status