Closed JulianSchmidtkeGWS closed 2 years ago
Hi,
Many thanks for raising this issue. Unfortunately we have not been able to get to this issue as soon as we'd have liked. Since it has been a long time since this issue was last updated, it is possible that this has been fixed by a newer release of Business Central and the AL extension for Visual Studio Code. We have thus decided to close it.
If the issue still affects you on the latest insider build of Business Central, please help us and open a new issue for us with the latest steps to reproduce the issue, and link back to this closed issue to track any comments or discussions.
Thanks,
Thaddeus
Describe the bug When you activate CodeCop with Rule AA0175 all positions where a record is fetched from the database but not used should be found. When you call multiple finds in a row, or with a Reset() inbetween, only the last find is marked as an error.
To Reproduce Steps and to reproduce the behavior:
AL Code to reproduce the issue
In this code no error is thrown, even though the first FindFirst is not necessary
Expected behavior Every Find Function that is not necessary should be highlighted. It should not matter if you fetch it again later without reading it inbetween.
Screenshots
5. Versions:
Also #6138 and #5727 are problems i encountered again.