Pattern: Redundant line break
Issue: -
Checks whether certain expressions, e.g. method calls, that could fit completely on a single line, are broken up into multiple lines unnecessarily.
# bad
foo(
a,
b
)
puts 'string that fits on ' \
'a single line'
things
.select { |thing| thing.cond? }
.join('-')
# good
foo(a, b)
puts 'string that fits on a single line'
things.select { |thing| thing.cond? }.join('-')