gini/gini-api-ruby

View on GitHub
lib/gini-api/oauth.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method initialize has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def initialize(api, opts)
        # Initialize client. max_redirect is required as oauth2 will otherwise redirect to location from header (localhost)
        # https://github.com/intridea/oauth2/blob/master/lib/oauth2/client.rb#L100
        # Our code is encoded in the URL and has to be parsed from there.
        client = OAuth2::Client.new(
Severity: Minor
Found in lib/gini-api/oauth.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status