lib/nitlink/response.rb
Line is too long. [96/80] Open
Open
Object.const_defined?(module_name) && Object.const_get(module_name).const_defined?(class_name)
- Exclude checks
Line is too long. [245/80] Open
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']
- Exclude checks
Missing top-level module documentation comment. Open
Open
module ResponseDecorator
- Read upRead up
- Exclude checks
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
Open
end
- Exclude checks
Line is too long. [103/80] Open
Open
Object.const_get(module_name).const_get(class_name).class_eval { include Nitlink::ResponseDecorator }
- Exclude checks