Enable Style/IndentationWidth cop

The offenses were fixed manually
This commit is contained in:
AEtherC0r3 2017-07-05 23:31:22 +03:00 committed by Stella Rouzi
parent e3b51dfc2b
commit 9c58397cd2
6 changed files with 71 additions and 83 deletions

View file

@ -469,17 +469,6 @@ Style/IndentationConsistency:
- 'app/models/event.rb' - 'app/models/event.rb'
- 'spec/controllers/subscriptions_controller_spec.rb' - 'spec/controllers/subscriptions_controller_spec.rb'
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: Width, IgnoredPatterns.
Style/IndentationWidth:
Exclude:
- 'app/helpers/format_helper.rb'
- 'app/serializers/conference_serializer.rb'
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
- 'lib/tasks/demo_data_for_development.rake'
- 'spec/models/ability_spec.rb'
# Offense count: 4 # Offense count: 4
# Cop supports --auto-correct. # Cop supports --auto-correct.
Style/LeadingCommentSpace: Style/LeadingCommentSpace:

View file

@ -102,7 +102,6 @@ module FormatHelper
end end
end end
# rubocop:disable Lint/EndAlignment
def word_pluralize(count, singular, plural = nil) def word_pluralize(count, singular, plural = nil)
word = if (count == 1 || count =~ /^1(\.0+)?$/) word = if (count == 1 || count =~ /^1(\.0+)?$/)
singular singular