elitmus/omniauth-elitmus

View on GitHub

Showing 126 of 126 total issues

Inconsistent indentation detected.
Open

                prune! hash
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Tab detected.
Open

                    value.nil? || (value.respond_to?(:empty?) && value.empty?)
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Freeze mutable objects assigned to constants.
Open

            DEFAULT_SCOPE = 'public'
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).

Example:

# bad
CONST = [1, 2, 3]

# good
CONST = [1, 2, 3].freeze

Tab detected.
Open

        class Elitmus < OmniAuth::Strategies::OAuth2
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Use 2 (not 1) spaces for indentation.
Open

    module Strategies
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end

Tab detected.
Open

                :site => "https://www.elitmus.com"
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

                prune! hash
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

            option :authorize_options, [:scope, :auth_type]
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

            end
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

                prune!({
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

                @raw_info ||= access_token.get('/api/v1/me').parsed
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

                    # Reek has a problem with the below code. Trying to rewrite the same
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

            def callback_url
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

             end
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Final newline missing.
Open

require 'omniauth/elitmus'
Severity: Minor
Found in lib/omniauth-elitmus.rb by rubocop

Tab detected.
Open

            info do
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

                 })
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Tab detected.
Open

    end
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

Inconsistent indentation detected.
Open

                  hash['raw_info'] = raw_info unless skip_info?
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Use 2 (not 1) spaces for indentation.
Open

        class Elitmus < OmniAuth::Strategies::OAuth2
Severity: Minor
Found in lib/omniauth/strategies/elitmus.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end
Severity
Category
Status
Source
Language