-
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
Rule to check for writeDump in cfset tags and script blocks #89
Conversation
100% code coverage in unit tests |
I think the expression inside cfset gets parsed. As a CFScriptExpression?. Not sure. If not it probably should be. |
Sadly it doesn't get parsed as a CFScriptExpression. If you comment out that method the test testWriteDumpInTag fails. |
Rule to check for writeDump in cfset tags and script blocks
@justinmclean I had to dig a little big to remember how this all worked. Not processing sounded like a missing feature, but it is there. You are correct that but public void expression(final CFExpression expression, final Context context, gets called for all expressions regardless of whether its from , or even nested inside another expression! So. the rule becomes quite simple. No substringing required. |
Great I'll fix - may need to fix a few other rules as well, but that's what's the tests are for :-) |
right :-). |
No description provided.