Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 367 Bytes

Lint-EmptyExpression.md

File metadata and controls

30 lines (21 loc) · 367 Bytes

Pattern: Empty expression

Issue: -

Description

This rule checks for the presence of empty expressions.

Examples

# bad

foo = ()
if ()
  bar
end
# good

foo = (some_expression)
if (some_expression)
  bar
end

Further Reading