-
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
Named arguments in functions #182
Comments
I'm pretty certain this is fixed in the master branch. I added a test for this case in dev and it doesn't flag 'crid' |
I'm definitley using CFLint-0.7.3-all.jar which was built from the master branch 2 days ago. Here is an example for argumentcollection.
` |
Hmm, I'm having trouble duplicating it on my workstation. And the travis build didn't pick it up with the new test added. https://travis-ci.org/cflint/CFLint/branches does this source file flag any MISSING_VAR for you? |
I'm running from the command line. java -jar CFLint-0.7.3-all.jar -ui Variable crid is not declared with a var statement. Use var or the local scope, or otherwise clarify the scope In file namedArgs.cfc, line 4 I cant get the dev branch to build. |
found it. sorry it took a while. |
Just tried to build the dev branch and got a failure so I cant check your fix. [INFO] ------------------------------------------------------------- |
Ignore my last message. The issue is resolved, no longer reporting var scope error for named arguments. Thanks for your help. |
I am getting Errors for named arguments in method calls. Can this be excluded or is it an issue.
Variable crid is not declared with a var statement. Use var or the local scope, or otherwise clarify the scope
In file CallPackageDao.cfc, line 247
In **********\object\cps\CallPackageDao.cfc
In function FindAllCallRates()
At line : 247
Expression: crid
The code parsed is shown below.
var callRate = getServiceLocator().get("object.cps.CallRate");
callRate.init(crid = CallRateId, newName = Name, newDescription = Description);
ArrayAppend(result, callRate);
I even get it with argumentcollection.
The text was updated successfully, but these errors were encountered: