Skip to content

Files

Latest commit

 

History

History
30 lines (21 loc) · 407 Bytes

Style-MultilineWhenThen.md

File metadata and controls

30 lines (21 loc) · 407 Bytes

Pattern: Use of then in multi-line when

Issue: -

Description

Checks uses of the then keyword in multi-line when statements.

Examples

# bad
case foo
when bar then
end

# good
case foo
when bar
end

# good
case foo
when bar then do_something
end

Further Reading