Rubocop fix for MultilineHashBraceLayout

This commit is contained in:
Brenda Wallace committed 2017-02-16 12:20:32 +13:00
1 parent 1b8c413b90
commit a4f8b3a0e6
2 files changed
+2 -9

No files matched your search

-8
View File
@@ -271,14 +271,6 @@ Style/MultilineBlockLayout:
- 'spec/models/member_spec.rb'
- 'spec/models/planting_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: symmetrical, new_line, same_line
Style/MultilineHashBraceLayout:
Exclude:
- 'app/models/planting.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineIfModifier:
+2 -1
View File
@@ -28,7 +28,8 @@ class Planting < ActiveRecord::Base
validates :quantity,
numericality: {
only_integer: true,
greater_than_or_equal_to: 0 },
greater_than_or_equal_to: 0
},
allow_nil: true
SUNNINESS_VALUES = %w(sun semi-shade shade)