Skip to content

Files

Latest commit

 

History

History
33 lines (23 loc) · 432 Bytes

Layout-BlockEndNewline.md

File metadata and controls

33 lines (23 loc) · 432 Bytes

Pattern: Missing newline for do..end

Issue: -

Description

This rule checks whether the end statement of a do..end block is on its own line.

Examples

# bad
blah do |i|
  foo(i) end

# good
blah do |i|
  foo(i)
end

# bad
blah { |i|
  foo(i) }

# good
blah { |i|
  foo(i)
}

Further Reading