Obsolete While...Wend loop inspection #4522
Labels
difficulty-02-ducky
Resolving these involves the internal API, but with relatively easy problems to solve.
enhancement
Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope.
feature-inspection-quickfixes
feature-inspections
up-for-grabs
Use this label in conjunction with a difficulty level label, e.g. difficulty-02-ducky
Projects
The
While...Wend
construct was made obsolete with the introduction ofDo While...Loop
blocks, forever ago. Rubberduck should have an inspection that flags them, and a quickfix that replacesWhile...Wend
withDo While...Loop
.Therefore, a further enhancement (involving a bit of code path analysis) could look for a line label/number immediately after
Wend
:...and replace it with an
Exit Do
statement:(removing the line label/number if it's left unreferenced)
The text was updated successfully, but these errors were encountered: