Skip to content

Files

Latest commit

 

History

History
47 lines (36 loc) · 692 Bytes

Lint-Loop.md

File metadata and controls

47 lines (36 loc) · 692 Bytes

Pattern: Missing use of Kernel#loop with break

Issue: -

Description

This rule checks for uses of begin...end while/until something.

Examples

# bad

# using while
begin
  do_something
end while some_condition
# bad

# using until
begin
  do_something
end until some_condition
# good

# using while
while some_condition
  do_something
end
# good

# using until
until some_condition
  do_something
end

Further Reading