CLOSER-Cohorts/archivist

View on GitHub
app/models/redis_record.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use Kernel#loop with break rather than begin/end/until(or while).
Open

    end while iterator.to_i != 0
Severity: Minor
Found in app/models/redis_record.rb by rubocop

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

There are no issues that match your filters.

Category
Status