Added Style/SpaceInsideBrackets Rubocop cop
This commit is contained in:
parent
415eadf477
commit
0d01ed08b0
4 changed files with 7 additions and 10 deletions
|
|
@ -88,6 +88,10 @@ Style/RedundantSelf:
|
||||||
Style/SpaceAroundOperators:
|
Style/SpaceAroundOperators:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
# Checks for spaces inside square brackets.
|
||||||
|
Style/SpaceInsideBrackets:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
# Use single quotes unless there's string interpolation
|
# Use single quotes unless there's string interpolation
|
||||||
Style/StringLiterals:
|
Style/StringLiterals:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
|
||||||
|
|
@ -811,13 +811,6 @@ Style/SpaceInsideBlockBraces:
|
||||||
- 'spec/models/ability_spec.rb'
|
- 'spec/models/ability_spec.rb'
|
||||||
- 'spec/models/user_spec.rb'
|
- 'spec/models/user_spec.rb'
|
||||||
|
|
||||||
# Offense count: 5
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Style/SpaceInsideBrackets:
|
|
||||||
Exclude:
|
|
||||||
- 'app/models/conference.rb'
|
|
||||||
- 'app/models/user.rb'
|
|
||||||
|
|
||||||
# Offense count: 25
|
# Offense count: 25
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
||||||
|
|
|
||||||
|
|
@ -803,7 +803,7 @@ class Conference < ActiveRecord::Base
|
||||||
hash[key] = 0
|
hash[key] = 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Hash[ hash.sort ]
|
Hash[hash.sort]
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,11 @@ class User < ActiveRecord::Base
|
||||||
devise_modules = []
|
devise_modules = []
|
||||||
|
|
||||||
if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
|
if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
|
||||||
devise_modules += [ :ichain_authenticatable, :ichain_registerable, :omniauthable, omniauth_providers: [] ]
|
devise_modules += [:ichain_authenticatable, :ichain_registerable, :omniauthable, omniauth_providers: []]
|
||||||
else
|
else
|
||||||
devise_modules += [:database_authenticatable, :registerable,
|
devise_modules += [:database_authenticatable, :registerable,
|
||||||
:recoverable, :rememberable, :trackable, :validatable, :confirmable,
|
:recoverable, :rememberable, :trackable, :validatable, :confirmable,
|
||||||
:omniauthable, omniauth_providers: [:suse, :google, :facebook, :github] ]
|
:omniauthable, omniauth_providers: [:suse, :google, :facebook, :github]]
|
||||||
end
|
end
|
||||||
|
|
||||||
devise(*devise_modules)
|
devise(*devise_modules)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue