Skip to content

MISSING_VAR in CFLOOP index #413

@bardware

Description

@bardware

I have the following Coldfusion code and invoke CFLint like cflint.bat -file c:\folder\x.cfm -stdout -json from latest git checkout (1.2 release)

I expect 3 missing vars: xxx, strSel and idx.
CFLint only lists two, idx is not regarded missing a var

<cffunction name="timePicker" returntype="string" hint="returns select" output="false">

	<cfsavecontent variable="strSel"><cfoutput>
		<select>
			<cfloop from="0" to="23" index="idx">
				<cfset xxx = NumberFormat(idx, "00")>
				<option value="#xxx#" <cfif xxx EQ 1>selected="selected"</cfif> >#xxx#</option>
			</cfloop>
		</select>
	</cfoutput></cfsavecontent>
	
	<cfreturn strSel>
</cffunction>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions