-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from TheRealAgentK/dev
Testcase for #285
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny5.cfc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
1 change: 1 addition & 0 deletions
1
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny5.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[ ] |