integrated-application-development / integrated-application-development/delphilint

"Analyze All Open Files" analyzes more files than are open

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
bug client
Dominant language
Pascal
Stars
146
Forks
31
PR merge metrics
No merged PRs in 30d

Description

### Prerequisites

- [X] This bug is in DelphiLint, not SonarDelphi, SonarQube, or my Delphi code.
- [X] This bug has not already been reported.

### DelphiLint version

0.7.0

### SonarDelphi version

1.3.0

### SonarQube version

_No response_

### Issue description

Occasionally, the "Analyze All Open Files" action in the Delphi IDE analyzes more files than are actually open.
In these cases the files seem to be recently closed files (as observed in logs).

This is inconvenient as:
* Analyzing unnecessary files increases scan time
* Visual feedback to the user is incorrect (e.g. the `Analyzing X.pas + Y more...` message is wrong)

### Steps to reproduce

Unclear. It seems to be related to closing large numbers of files at once?

### Minimal Delphi code exhibiting the issue

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.