-
Notifications
You must be signed in to change notification settings - Fork 85
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
c8102c6
commit 0e785cf
Showing
2 changed files
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
component { | ||
property string username; | ||
property string password; | ||
|
||
public tagCFC function init(required string username, required string password) { | ||
someVar = ''; | ||
return this; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/test/resources/com/cflint/tests/VarScoper/pureScript.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,17 @@ | ||
[ { | ||
"severity" : "ERROR", | ||
"id" : "MISSING_VAR", | ||
"message" : "MISSING_VAR", | ||
"category" : "CFLINT", | ||
"abbrev" : "MV", | ||
"locations" : [ { | ||
"file" : "src\\test\\resources\\com\\cflint\\tests\\VarScoper\\pureScript.cfc", | ||
"fileName" : "pureScript.cfc", | ||
"function" : "init", | ||
"column" : "6", | ||
"line" : "6", | ||
"message" : "Variable someVar is not declared with a var statement.", | ||
"variable" : "someVar", | ||
"expression" : "someVar" | ||
} ] | ||
} ] |