Skip to content

Commit

Permalink
Retrospective fix for test case for cflint#282 (and reopened cflint#195
Browse files Browse the repository at this point in the history
…) to how it actually should look like.
  • Loading branch information
TheRealAgentK committed Jun 19, 2017
1 parent 81edfe2 commit 325abfa
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny4.cfc
Original file line number Diff line number Diff line change
@@ -1,36 +1,21 @@
<!---
@CFLintIgnore CFQUERYPARAM_REQ
--->
<cfcomponent>

<!---
@CFLintIgnore CFQUERYPARAM_REQ
--->
<cffunction name="testFunction" displayname="" access="public" output="false" returntype="void" hint="">

<cfset var commentsSelect = "">

<!---
@CFLintIgnore CFQUERYPARAM_REQ
--->
<cfquery name="commentsSelect" datasource="#arguments.siteDomain#com" cachedwithin="#createTimeSpan(0,0,5,0)#"> <!--- @CFLintIgnore CFQUERYPARAM_REQ --->
<!---
@CFLintIgnore CFQUERYPARAM_REQ
--->
<cfquery name="commentsSelect" datasource="#arguments.siteDomain#com" cachedwithin="#createTimeSpan(0,0,5,0)#">
SELECT
M.firstName
<!---
@CFLintIgnore CFQUERYPARAM_REQ
--->
FROM #application.linkedServerName#.schema.dbo.Comment C WITH (NOLOCK) <!--- @CFLintIgnore CFQUERYPARAM_REQ --->
FROM #application.linkedServerName#.schema.dbo.Comment C WITH (NOLOCK)
LEFT OUTER JOIN something SM WITH (NOLOCK)
ON C.memberID = SM.memberID
INNER JOIN somethingelse m
ON m.memberID = sm.memberid
<!---
@CFLintIgnore CFQUERYPARAM_REQ
--->
LEFT OUTER JOIN #application.linkedServerName#.schema.dbo.Author A WITH (NOLOCK) <!--- @CFLintIgnore CFQUERYPARAM_REQ --->
LEFT OUTER JOIN #application.linkedServerName#.schema.dbo.Author A WITH (NOLOCK)
ON C.aID = A.aID
WHERE
eID = 34 AND
Expand Down

0 comments on commit 325abfa

Please sign in to comment.