Closed paweston70 closed 1 year ago
If a variable is written but never read, it is flagged by the inspection. See also #6134
If cbd
is ever read later within the method provided as an example, then it would be a bug.
Apologies - you are absolutely right; I missed the variable later on in the code.
Rubberduck version information The info below can be copy-paste-completed from the first lines of Rubberduck's log or the About box:
Description When Rubberduck checks the code quality it reports some variables as not being used, when they clearly are.
To Reproduce Obvious.
Expected behavior The code should be examined in the whole of the current block before declaring a quality issue.
Screenshots
Logfile RubberduckLog.txt