Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 442 Bytes

Lint-EmptyInPattern.md

File metadata and controls

30 lines (22 loc) · 442 Bytes

Pattern: Use of in pattern branch without body

Issue: -

Description

Checks for the presence of in pattern branches without a body.

Examples

# bad
case condition
in [a]
  do_something
in [a, b]
end

# good
case condition
in [a]
  do_something
in [a, b]
  nil
end

Further Reading