-
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 #218 from cflint/master
update dev
- Loading branch information
Showing
12 changed files
with
117 additions
and
50 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
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
12 changes: 12 additions & 0 deletions
12
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny1.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,12 @@ | ||
<cfcomponent> | ||
|
||
<cffunction name="testFunction" displayname="" access="public" output="false" returntype="void" hint=""> | ||
<!--- | ||
@CFLintIgnore SOMETHINGELSE,MISSING_VAR,ANOTHERTHINGTOIGNORE | ||
---> | ||
<cfscript> | ||
someVar = ''; | ||
</cfscript> | ||
</cffunction> | ||
|
||
</cfcomponent> |
1 change: 1 addition & 0 deletions
1
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny1.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 @@ | ||
[ ] |
18 changes: 18 additions & 0 deletions
18
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny2.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,18 @@ | ||
<!--- | ||
This shouldn't ignore the missing var int the 2nd cfscript; | ||
---> | ||
<cfcomponent> | ||
|
||
<cffunction name="testFunction" displayname="" access="public" output="false" returntype="void" hint=""> | ||
<!--- | ||
@CFLintIgnore SOMETHINGELSE,MISSING_VAR,ANOTHERTHINGTOIGNORE | ||
---> | ||
<cfscript> | ||
var test = ''; | ||
</cfscript> | ||
<cfscript> | ||
someVar = ''; | ||
</cfscript> | ||
</cffunction> | ||
|
||
</cfcomponent> |
17 changes: 17 additions & 0 deletions
17
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny2.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\\Ignores\\ignoreCFMLAny2.cfc", | ||
"fileName" : "ignoreCFMLAny2.cfc", | ||
"function" : "testFunction", | ||
"column" : "8", | ||
"line" : "14", | ||
"message" : "Variable someVar is not declared with a var statement.", | ||
"variable" : "someVar", | ||
"expression" : "someVar" | ||
} ] | ||
} ] |
19 changes: 19 additions & 0 deletions
19
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny3_Nested.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,19 @@ | ||
<!--- | ||
This shouldn ignore the missing var int the nested cfscript; | ||
---> | ||
<cfcomponent> | ||
|
||
<cffunction name="testFunction" displayname="" access="public" output="false" returntype="void" hint=""> | ||
<!--- | ||
@CFLintIgnore SOMETHINGELSE,MISSING_VAR,ANOTHERTHINGTOIGNORE | ||
---> | ||
<div> | ||
<cfsavecontent> | ||
<cfscript> | ||
someVar = ''; | ||
</cfscript> | ||
</cfsavecontent> | ||
</div> | ||
</cffunction> | ||
|
||
</cfcomponent> |
1 change: 1 addition & 0 deletions
1
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLAny3_Nested.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 @@ | ||
[ ] |
12 changes: 12 additions & 0 deletions
12
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLFunction.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,12 @@ | ||
<cfcomponent> | ||
|
||
<!--- | ||
@CFLintIgnore SOMETHINGELSE,MISSING_VAR,ANOTHERTHINGTOIGNORE | ||
---> | ||
<cffunction name="testFunction" displayname="" access="public" output="false" returntype="void" hint=""> | ||
<cfscript> | ||
someVar = ''; | ||
</cfscript> | ||
</cffunction> | ||
|
||
</cfcomponent> |
1 change: 1 addition & 0 deletions
1
src/test/resources/com/cflint/tests/Ignores/ignoreCFMLFunction.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 @@ | ||
[ ] |