app/models/identifier.rb
Use Kernel#loop
with break
rather than begin/end/until
(or while
). Open
Open
end while iterator.to_i != 0
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for uses of begin...end while/until something.
Example:
# bad
# using while
begin
do_something
end while some_condition
Example:
# bad
# using until
begin
do_something
end until some_condition
Example:
# good
# using while
while some_condition
do_something
end
Example:
# good
# using until
until some_condition
do_something
end