Merge pull request #1262 from nikhilgupta1211/rubocop_changes

Enable Style/SpaceAroundOperators Rubocop
This commit is contained in:
Ana María Martínez Gómez 2017-02-07 09:46:45 +01:00 committed by GitHub
commit db6222715b
11 changed files with 21 additions and 34 deletions

View file

@ -101,7 +101,10 @@ Metrics/ClassLength:
Style/BracesAroundHashParameters: Style/BracesAroundHashParameters:
Enabled: true Enabled: true
# # Checks that operators have space around them, except for ** which should not have surrounding space.
Style/SpaceAroundOperators:
Enabled: true
Style/CaseEquality: Style/CaseEquality:
Enabled: true Enabled: true

View file

@ -594,22 +594,6 @@ Style/SpaceAroundBlockParameters:
Style/SpaceAroundEqualsInParameterDefault: Style/SpaceAroundEqualsInParameterDefault:
Enabled: false Enabled: false
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Style/SpaceAroundOperators:
Exclude:
- 'app/controllers/application_controller.rb'
- 'app/models/conference.rb'
- 'app/models/datatable.rb'
- 'app/models/event.rb'
- 'app/models/target.rb'
- 'app/models/ticket.rb'
- 'db/migrate/20141128073306_migrate_data_remove_column_include_cfp_in_splash_add_column_include_cfp.rb'
- 'db/migrate/20150417050953_add_url_to_commercial.rb'
- 'db/migrate/20151018152439_create_programs_table.rb'
- 'spec/models/conference_spec.rb'
# Offense count: 223 # Offense count: 223
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.