Hi all,
 
Got what I hope will be a quick one for you...
 
I have a code review tool that finds common CF programming problems, but
if it hits an improperly nested tag the tool tanks and reports no
problems even if there are multiple.
 
Normally this isn't a problem because the programmers in our shop know
not to do it, but recently we have had to have some contractors come in,
and occasionally I need to make changes to their code and I've found it
happening.
 
I'm looking to see if any one has some code/regex/etc to find this
problem.  I would most likely then run that code first, make the
contractors fix it, and then run the code review tool.
 
When I say improperly nested I mean like this:
<input name="test" value="<cfoutput>#VariableValue#</cfoutput>" />
 
our policy is to use
<cfoutput><input name="test" value="#VariableValue#" />
 
Thanks,
Steve
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280977
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to