Improper use of block delimiter detectedRB-ST1011
Braces {}
should be used around single-line blocks, and
do ... end
delimiters should be used for multi-line blocks.
Bad practice
items.each do |item| item / 5 end
things.map { |thing|
something = thing.some_method
process(something)
}
Recommended
items.each { |item| item / 5 }
things.map do |thing|
something = thing.some_method
process(something)
end