Showing 126 of 126 total issues
Inconsistent indentation detected. Open
Open
prune! hash
- Read upRead up
- Exclude checks
This cops checks for inconsistent indentation.
Example:
class A
def test
puts 'hello'
puts 'world'
end
end
Tab detected. Open
Open
value.nil? || (value.respond_to?(:empty?) && value.empty?)
- Exclude checks
Freeze mutable objects assigned to constants. Open
Open
DEFAULT_SCOPE = 'public'
- Read upRead up
- Exclude checks
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
Open
class Elitmus < OmniAuth::Strategies::OAuth2
- Exclude checks
Use 2 (not 1) spaces for indentation. Open
Open
module Strategies
- Read upRead up
- Exclude checks
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
Open
:site => "https://www.elitmus.com"
- Exclude checks
Tab detected. Open
Open
prune! hash
- Exclude checks
Tab detected. Open
Open
option :authorize_options, [:scope, :auth_type]
- Exclude checks
Tab detected. Open
Open
end
- Exclude checks
Tab detected. Open
Open
prune!({
- Exclude checks
Tab detected. Open
Open
@raw_info ||= access_token.get('/api/v1/me').parsed
- Exclude checks
Tab detected. Open
Open
# Reek has a problem with the below code. Trying to rewrite the same
- Exclude checks
Tab detected. Open
Open
def callback_url
- Exclude checks
Tab detected. Open
Open
end
- Exclude checks
Final newline missing. Open
Open
require 'omniauth/elitmus'
- Exclude checks
Tab detected. Open
Open
info do
- Exclude checks
Tab detected. Open
Open
})
- Exclude checks
Tab detected. Open
Open
end
- Exclude checks
Inconsistent indentation detected. Open
Open
hash['raw_info'] = raw_info unless skip_info?
- Read upRead up
- Exclude checks
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
Open
class Elitmus < OmniAuth::Strategies::OAuth2
- Read upRead up
- Exclude checks
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