You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FirstHashElementLineBreak doesn't apply to the below case:
{:foo=>{:bar=>"baz",}}
I want it to produce:
{:foo=>{:bar=>"baz",},}
FirstHashElementLineBreak skips the outer hash because it only has a single element. I think the outer hash still counts as "multi-line" even though it only has one element.
The text was updated successfully, but these errors were encountered:
muirdm
pushed a commit
to retailnext/rubocop
that referenced
this issue
Dec 30, 2020
…line hash
Fix Layout/FirstHashElementLineBreak to consider below as a multi-line
hash even though it only has one element:
{:foo => {
:bar => "baz",
}}
Now FirstHashElementLineBreak will correct the above to:
{
:foo => {
:bar => "baz",
},
}
Fixesrubocop#9312.
Fix Layout/FirstHashElementLineBreak to consider below as a multi-line
hash even though it only has one element:
{:foo => {
:bar => "baz",
}}
Now FirstHashElementLineBreak will correct the above to:
{
:foo => {
:bar => "baz",
},
}
Fixes#9312.
FirstHashElementLineBreak doesn't apply to the below case:
I want it to produce:
FirstHashElementLineBreak skips the outer hash because it only has a single element. I think the outer hash still counts as "multi-line" even though it only has one element.
The text was updated successfully, but these errors were encountered: