Saturday, October 29, 2011

Script Components in CFWarning

I have updated my CFWarning plugin to now parse script components. I have been working with script components now for a while and it was time to have the ability to check the scoping before I committed. Now the plugin will check for scoping in both script and tag components. I have the updated code and plugin jar file on github. There are still some cases of false positives for script components, but it does a good job of finding variables that are not scoped.

After working on this for a while, and then going back and checking all of the files in my project I think that I am going to make some small changes to the setup of this project. My plan is to extract the parsing components and have at least two parts to the project. One would be compiled as the plugin, the other would be compiled as an executable that could be run from the command line or as an ant task. The second one then would be able to check the components in a set of directories. The ant task seems like a good option, as it could be setup as part of a CI process.

I'll have another post when I have any more updates on the project.