Cop/LineBreakAroundConditionalBlock should not warn when function parameters are multi-line
In gitlab-styles
6.4.0, this code is apparently bad, even though I'm pretty sure it's fine:
def foo(
bar: 1,
qux: 2
)
if bar == 1 # <-- Cop/LineBreakAroundConditionalBlock error here
'bar'
end
end
To make it pass, either of the following work:
- Put the function params on one line:
def foo(bar: 1, qux: 2) if bar == 1 'bar' end end
- Add a blank line at the start of the function body:
def foo( bar: 1, qux: 2 ) if bar == 1 'bar' end end