mad-raz/EGP-Rates

View on GitHub
lib/egp_rates/cib.rb

Summary

Maintainability
A
45 mins
Test Coverage

Showing 2 of 2 total issues

Method raw_exchange_rates has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

def raw_exchange_rates
req = Net::HTTP::Post.new(@uri, 'Content-Type' => 'application/json')
req.body = { lang: :en }.to_json
response = Net::HTTP.start(@uri.hostname, @uri.port) do |http|
http.request(req)
Severity: Minor
Found in lib/egp_rates/cib.rb - About 45 mins to fix

Add an empty line after magic comments.
Open

module EGPRates
Severity: Minor
Found in lib/egp_rates/cib.rb by rubocop
Category
Status