Ruby logoRuby/
RB-ST1011

Improper use of block delimiter detectedRB-ST1011

Minor severityMinor
Anti-pattern categoryAnti-pattern

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)
}
items.each { |item| item / 5 }

things.map do |thing|
  something = thing.some_method
  process(something)
end