Skip to content

Commit

Permalink
Merge pull request #287 from TheRealAgentK/dev
Browse files Browse the repository at this point in the history
Testcase for #285
TheRealAgentK authored Jun 7, 2017
2 parents c88b366 + 5e60f33 commit 9bb78bb
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny5.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<cfcomponent namespace="something" displayname="something" output="no" hint="">
<cffunction name="init" access="public" returntype="something" hint="constructor" output="no">

<cfset var siteSelect = "">

<cfquery name="siteSelect" datasource="#variables.DSN#">
SELECT
siteID
FROM
somthing WITH (NOLOCK)
WHERE
isLive = 1
</cfquery>

<cfset variables.siteDetailList = {}>

<cfloop query="siteSelect">
<cfscript>
variables.siteDetailList[siteID] = {"siteName"="hello"}; // cflint ignore:MISSING_VAR
</cfscript>
</cfloop>

<cfreturn this/>
</cffunction>
</cfcomponent>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[ ]

0 comments on commit 9bb78bb

Please sign in to comment.