Skip to content
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

Error in UNUSED_LOCAL_VARIABLE, using in cfloop condition #657

Open
Vintic opened this issue Nov 22, 2019 · 0 comments
Open

Error in UNUSED_LOCAL_VARIABLE, using in cfloop condition #657

Vintic opened this issue Nov 22, 2019 · 0 comments

Comments

@Vintic
Copy link

Vintic commented Nov 22, 2019

Hi, found that vars in condition statement are not parsed:
<cffunction name = "Update" access = "public" returntype = "boolean"> <cfset var loop_index_countvar=10 /> <cfset var loop_index=1 /> <cfloop condition = "loop_index less than loop_index_countvar"> <cfset loop_index=loop_index+1 /> </cfloop> </cffunction>

loop_index_countvar - this var is reported as unused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants