Skip to content

Files

Latest commit

 

History

History
36 lines (26 loc) · 548 Bytes

Style-MultilineInPatternThen.md

File metadata and controls

36 lines (26 loc) · 548 Bytes

Pattern: Use of then for multi-line in statement

Issue: -

Description

Checks uses of the then keyword in multi-line in statement.

Examples

# bad
case expression
in pattern then
end

# good
case expression
in pattern
end

# good
case expression
in pattern then do_something
end

# good
case expression
in pattern then do_something(arg1,
                             arg2)
end

Further Reading