-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
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
False positives in VariableInitialization
around SetLength
intrinsic
#250
Comments
Hi @zedxxx, thanks for reporting these! The first issue (uninitialized The second issue (unused |
VariableInitialization
around SetLength
intrinsic
Sure: #251 |
Cheers, I'll chase up these issues. |
Hi @zedxxx, Looks like Here's what I did:
The analyzer requires source code to perform type & invocation resolution, and things can go quite haywire if dependency source code isn't in the search path (or debugger source path). One potential thing - do you only have the |
Ah, there's the problem. The analyzer doesn't currently read the library path. Adding support hasn't been seriously looked at, but it would certainly improve the accuracy of our import resolution (as evidenced by your case). In your case, for an accurate analysis you'll have to add your dependencies to the search path or debug source path. We could look into adding support for the library path, and you're welcome to open a feature request. |
Delphi IDE version: Delphi 12.1
DelphiLint version: 1.1.0
SonarDelphi version: 1.6.0
The text was updated successfully, but these errors were encountered: