mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-22 06:54:23 -04:00
Rubocop fix for MultilineHashBraceLayout
This commit is contained in:
1 parent
1b8c413b90
commit
a4f8b3a0e6
2 files changed
+2
-9
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user