Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneberly committed Jul 29, 2016
1 parent c8102c6 commit 0e785cf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/resources/com/cflint/tests/VarScoper/pureScript.cfc
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;
}
}
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"
} ]
} ]

0 comments on commit 0e785cf

Please sign in to comment.