We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
count-down-loop
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The count-down-loop diagnostic does not warn all the time when the loop end cannot be reached due to it being less than the loop start.
-- warns for i=10, 1 do end -- does not warn for i=100, 10, 1 do end
There is also no count-down-loop equivalent for loops that count up but never reach the end of the loop:
-- does not warn for i=1, -10 do end --does not warn for i=-10, 100, -1 do end
I think the count-down-loop diagnostic should be renamed to loop-never-ends. It can then be used for all of the cases above.
loop-never-ends
Originally posted by @carsakiller in #1362 (reply in thread)
The text was updated successfully, but these errors were encountered:
2673232
It should be loop-only-once instead of loop-never-ends.
loop-only-once
However this check is used for preventing missing the step. If the user remembers to write the step, he will not write it wrong.
Sorry, something went wrong.
No branches or pull requests
The problem
The
count-down-loop
diagnostic does not warn all the time when the loop end cannot be reached due to it being less than the loop start.There is also no
count-down-loop
equivalent for loops that count up but never reach the end of the loop:The solution
I think the
count-down-loop
diagnostic should be renamed toloop-never-ends
. It can then be used for all of the cases above.Originally posted by @carsakiller in #1362 (reply in thread)
The text was updated successfully, but these errors were encountered: