Enable Style/IndentationWidth cop
The offenses were fixed manually
This commit is contained in:
parent
e3b51dfc2b
commit
9c58397cd2
6 changed files with 71 additions and 83 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue