New varScoper release candidate
A new release candidate is available for my varScoper tool.
varscoper_1_30_RC.zip
Please download and run against your code. If you find any issues please report them at RIAForge.
Thank you to everyone who provided feedback on 1.21. At least 16 bugs were identified and are now fixed in the RC. All reported issues and corner cases have been added to the unit test to ensure that it won't break the same way in the future. Additionally, thank you to Pat Santora, who was responsible for a majority of the fixes.
Finally, based on feedback, I've included a cfset statement generator to generate blocks of cfset var statements. However, I take no responsibility for the consequences of using this generated code.


I'm going to include support for ANT in 1.30 (it's actually in there now, but without instructions). If you take a look at the build.xml file you can probably figure it out.
-Mike
<cfscript>
var qJars = 0;
</cfscript>
<cfdirectory action="list" name="qJars" directory="#path#" filter="*.jar" sort="name desc"/>
Is there additional code that you didn't include that causes the false positive? Also, are you sure that you checked "parse cfscript" when you ran it? I just created a test case locally and it seems to run fine without false positives.
I guess I saw "experimental" and glazed over it.
False positive not found when checked.
Thanks, awesome tool. Really fast
cheers.
This is super useful tool that I don't know how I lived without. One useful addition for me would be a check box that allowed it to ignore violations that occur inside comments
I'd love to add that in, however, comments have proven to be extremely difficult to parse with regular expressions. As soon as I can figure out a reliable expression to use I'll include this feature by default. I'd love any help that I can get.
i try your varScoper.
Very nice !!!
I have an unscope variable but i don't know how to scope its...
<cfinvoke method="getQStat" returnvariable="qStat">
Can you help me pleaz?
<cfset var qStat = "" />