-
Notifications
You must be signed in to change notification settings - Fork 84
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
New MISSING_VAR false positives in 1.3.0 around cfscript/tag syntax #517
Comments
I remember having seen a ticket that dealt with those built-in CFML objects for 1.3.0 - any chance whoever worked on it could have a look into these issues? |
Yeah, it seems that something related to the fixes for either of these tickets now creates the issues with the "new" syntax. |
Sounds like the improved parsing is causing more false positives. |
👍 I've seen this issue as well. |
@TheRealAgentK, are you getting the false positives on the dev branch? I'm not aware of any fixes, but the tests I added to |
Pretty sure I got the issue with a local build of the dev branch. Your tests look like my scenarios - I'll look closer into that later today or on the weekend - weird. |
Yep, this is 1.3.0 and here are some more code samples if needed:
|
Hi @lmajano
|
@ryaneberly I am able to reproduce the issue on 1.3.0 as it is. However, it appears to be fine on the latest |
Interesting. I downloaded the 1.3.0 from maven and couldn't reproduce it in isolation. Thanks for checking. |
I think this can be closed and included in 1.4.0 |
ACF, here are a few examples of new false positives (150+ in my codebase) I just found :-/
They never triggered false positives in 1.2.x. but do now in 1.3+
var qGetSites = new Query(datasource="...", sql="...");
Variable datasource is not declared with a var statement, same for "variable" sql.
all 5 valid attributes here trigger now MISSING_VAR
method and charset trigger a MISSING_VAR, url doesn't. No idea why.
charset, throwOnError, username, password, getAsBinary trigger MISSING_VAR
application.facebookSDK.facebookApp = new facebook.sdk.FacebookApp(appId=application.config.FBPhotoEndpoint_APPID, secretKey=application.config.FBPhotoEndpoint_SECRET_KEY, apiVersion=application.config.FBPhotoEndpoint_Version);
Reports MISSING_VAR on each of the constructor arguments appId, secretKey, apiVersion
The above is in a custom tag. Reports on "caller" for MISSING_VAR. "Caller" is a scope similar to thisTag in a custom tag and should then not report MISSING_VAR.
The text was updated successfully, but these errors were encountered: