-
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.
- Loading branch information
1 parent
8ffff19
commit f17747b
Showing
17 changed files
with
188 additions
and
7 deletions.
There are no files selected for viewing
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
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
10 changes: 10 additions & 0 deletions
10
src/test/resources/com/cflint/tests/VarScoper/fpositive/.cflintrc
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,10 @@ | ||
{ | ||
"rule" : [ ], | ||
"excludes" : [ ], | ||
"includes" : [ { | ||
"code" : "MISSING_VAR", | ||
"messageText" : null, | ||
"severity" : null | ||
} ], | ||
"inheritParent" : false | ||
} |
8 changes: 8 additions & 0 deletions
8
src/test/resources/com/cflint/tests/VarScoper/fpositive/constructor.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,8 @@ | ||
component{ | ||
function foo(){ | ||
application.facebookSDK.facebookApp = new facebook.sdk.FacebookApp( | ||
appId=application.config.FBPhotoEndpoint_APPID, | ||
secretKey=application.config.FBPhotoEndpoint_SECRET_KEY, | ||
apiVersion=application.config.FBPhotoEndpoint_Version); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/resources/com/cflint/tests/VarScoper/fpositive/constructor.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,11 @@ | ||
{ | ||
"version" : "", | ||
"timestamp" : 1515639111, | ||
"issues" : [ ], | ||
"counts" : { | ||
"totalFiles" : 0, | ||
"totalLines" : 0, | ||
"countByCode" : [ ], | ||
"countBySeverity" : [ ] | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/test/resources/com/cflint/tests/VarScoper/fpositive/expectation.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,6 @@ | ||
component{ | ||
function foo(){ | ||
var oExpectation = new Expectation( spec=this, assertions=this.$assert, mockbox=this.$mockbox ); | ||
thread.closures = arguments.closures; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/resources/com/cflint/tests/VarScoper/fpositive/expectation.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,11 @@ | ||
{ | ||
"version" : "", | ||
"timestamp" : 1525480387, | ||
"issues" : [ ], | ||
"counts" : { | ||
"totalFiles" : 0, | ||
"totalLines" : 0, | ||
"countByCode" : [ ], | ||
"countBySeverity" : [ ] | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/resources/com/cflint/tests/VarScoper/fpositive/http.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,9 @@ | ||
component{ | ||
function foo(resourceUri){ | ||
var httpRequest = new HTTP( | ||
method = "get", | ||
url = ("http://api.foo.com" & resourceUri), | ||
charset = "utf-8" | ||
); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/resources/com/cflint/tests/VarScoper/fpositive/http.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,11 @@ | ||
{ | ||
"version" : "", | ||
"timestamp" : 1515639111, | ||
"issues" : [ ], | ||
"counts" : { | ||
"totalFiles" : 0, | ||
"totalLines" : 0, | ||
"countByCode" : [ ], | ||
"countBySeverity" : [ ] | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/com/cflint/tests/VarScoper/fpositive/http2.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,5 @@ | ||
component{ | ||
function foo(resourceUri){ | ||
var httpRequest = new Http(method=arguments.method, url=variables.ENDPOINT & arguments.resourceUri, charset="utf-8", timeout=arguments.timeout, throwOnError=false, username=variables.something, password=variables.somethingelse, getAsBinary="never"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/resources/com/cflint/tests/VarScoper/fpositive/http2.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,11 @@ | ||
{ | ||
"version" : "", | ||
"timestamp" : 1515639111, | ||
"issues" : [ ], | ||
"counts" : { | ||
"totalFiles" : 0, | ||
"totalLines" : 0, | ||
"countByCode" : [ ], | ||
"countBySeverity" : [ ] | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/resources/com/cflint/tests/VarScoper/fpositive/mail.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,11 @@ | ||
component{ | ||
function foo(mailBody){ | ||
var mailService=new mail( | ||
to="...", | ||
from="...", | ||
subject="...", | ||
type="HTML", | ||
body=mailBody | ||
); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/resources/com/cflint/tests/VarScoper/fpositive/mail.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,11 @@ | ||
{ | ||
"version" : "", | ||
"timestamp" : 1515639111, | ||
"issues" : [ ], | ||
"counts" : { | ||
"totalFiles" : 0, | ||
"totalLines" : 0, | ||
"countByCode" : [ ], | ||
"countBySeverity" : [ ] | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/com/cflint/tests/VarScoper/fpositive/query.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,5 @@ | ||
component{ | ||
function foo(){ | ||
var qGetSites = new Query(datasource="...", sql="..."); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/resources/com/cflint/tests/VarScoper/fpositive/query.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,11 @@ | ||
{ | ||
"version" : "", | ||
"timestamp" : 1515639111, | ||
"issues" : [ ], | ||
"counts" : { | ||
"totalFiles" : 0, | ||
"totalLines" : 0, | ||
"countByCode" : [ ], | ||
"countBySeverity" : [ ] | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/com/cflint/tests/VarScoper/fpositive/tag.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,7 @@ | ||
component{ | ||
void function setCallerVars(data, row, getRow, columnNames){ | ||
var currentRow=0; | ||
var rowData = getRow(data, row, columnNames); | ||
caller["currentRow"] = currentRow; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/test/resources/com/cflint/tests/VarScoper/fpositive/tag.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,11 @@ | ||
{ | ||
"version" : "", | ||
"timestamp" : 0, | ||
"issues" : [ ], | ||
"counts" : { | ||
"totalFiles" : 0, | ||
"totalLines" : 0, | ||
"countByCode" : [ ], | ||
"countBySeverity" : [ ] | ||
} | ||
} |