Inspectopedia Help

Incorrect context for jump statement

Reports the incorrect use of control flow jump statements, such as return, retry, redo, break, and continue.

Example:

i = 1 while true if i * 6 >= 30 retry end puts i * 6 i += 1 end

Inspection Details

Available in:

Qodana for Ruby 2023.3, RubyMine 2023.3

Plugin:

Ruby, 233.SNAPSHOT

Last modified: 13 July 2023