forked from cflint/CFLint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cflint#323 - issue 4 --- Updated all test by regenerating the results.
- Loading branch information
1 parent
8f0fa3d
commit 5e97022
Showing
81 changed files
with
1,160 additions
and
593 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
src/test/resources/com/cflint/tests/ArgVarConflict/mixedScopeExample.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 |
---|---|---|
@@ -1 +1,5 @@ | ||
[ ] | ||
[ { | ||
"totalfiles" : 0 | ||
}, { | ||
"totalsize" : 0 | ||
} ] |
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
74 changes: 42 additions & 32 deletions
74
src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare1.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 |
---|---|---|
@@ -1,33 +1,43 @@ | ||
[ { | ||
"severity" : "WARNING", | ||
"id" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"message" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"category" : "CFLINT", | ||
"abbrev" : "CI", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare1.cfm", | ||
"fileName" : "Compare1.cfm", | ||
"function" : "", | ||
"column" : 5, | ||
"line" : 5, | ||
"message" : "CWE-482: Comparing instead of Assigning", | ||
"variable" : "==", | ||
"expression" : "x.x == 2" | ||
} ] | ||
}, { | ||
"severity" : "WARNING", | ||
"id" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"message" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"category" : "CFLINT", | ||
"abbrev" : "CI", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare1.cfm", | ||
"fileName" : "Compare1.cfm", | ||
"function" : "", | ||
"column" : 5, | ||
"line" : 9, | ||
"message" : "CWE-482: Comparing instead of Assigning", | ||
"variable" : "EQ", | ||
"expression" : "x.x EQ 6" | ||
} ] | ||
[ { | ||
"severity" : "WARNING", | ||
"id" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"message" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"category" : "CFLINT", | ||
"abbrev" : "CI", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare1.cfm", | ||
"fileName" : "Compare1.cfm", | ||
"function" : "", | ||
"column" : 5, | ||
"line" : 5, | ||
"message" : "CWE-482: Comparing instead of Assigning", | ||
"variable" : "==", | ||
"expression" : "x.x == 2" | ||
} ] | ||
}, { | ||
"severity" : "WARNING", | ||
"id" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"message" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"category" : "CFLINT", | ||
"abbrev" : "CI", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare1.cfm", | ||
"fileName" : "Compare1.cfm", | ||
"function" : "", | ||
"column" : 5, | ||
"line" : 9, | ||
"message" : "CWE-482: Comparing instead of Assigning", | ||
"variable" : "EQ", | ||
"expression" : "x.x EQ 6" | ||
} ] | ||
}, { | ||
"totalfiles" : 0 | ||
}, { | ||
"totalsize" : 0 | ||
}, { | ||
"code" : "COMPARE_INSTEAD_OF_ASSIGN", | ||
"count" : 2 | ||
}, { | ||
"severity" : "WARNING", | ||
"count" : 2 | ||
} ] |
6 changes: 5 additions & 1 deletion
6
src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare2.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 |
---|---|---|
@@ -1 +1,5 @@ | ||
[ ] | ||
[ { | ||
"totalfiles" : 0 | ||
}, { | ||
"totalsize" : 0 | ||
} ] |
6 changes: 5 additions & 1 deletion
6
src/test/resources/com/cflint/tests/Complexity/ifelse.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 |
---|---|---|
@@ -1 +1,5 @@ | ||
[ ] | ||
[ { | ||
"totalfiles" : 0 | ||
}, { | ||
"totalsize" : 0 | ||
} ] |
42 changes: 26 additions & 16 deletions
42
src/test/resources/com/cflint/tests/Complexity/ifelseComplex.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 |
---|---|---|
@@ -1,17 +1,27 @@ | ||
[ { | ||
"severity" : "WARNING", | ||
"id" : "FUNCTION_TOO_COMPLEX", | ||
"message" : "FUNCTION_TOO_COMPLEX", | ||
"category" : "CFLINT", | ||
"abbrev" : "FT", | ||
"locations" : [ { | ||
"file" : "src\\test\\resources\\com\\cflint\\tests\\Complexity\\ifelseComplex.cfc", | ||
"fileName" : "ifelseComplex.cfc", | ||
"function" : "foo", | ||
"column" : 0, | ||
"line" : 2, | ||
"message" : "Function foo is too complex. Consider breaking the function into smaller functions.", | ||
"variable" : "", | ||
"expression" : "if(something ) {\ndoSomethingElse();\n\n }" | ||
} ] | ||
[ { | ||
"severity" : "WARNING", | ||
"id" : "FUNCTION_TOO_COMPLEX", | ||
"message" : "FUNCTION_TOO_COMPLEX", | ||
"category" : "CFLINT", | ||
"abbrev" : "FT", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/Complexity/ifelseComplex.cfc", | ||
"fileName" : "ifelseComplex.cfc", | ||
"function" : "foo", | ||
"column" : 0, | ||
"line" : 2, | ||
"message" : "Function foo is too complex. Consider breaking the function into smaller functions.", | ||
"variable" : "", | ||
"expression" : "if(something ) {\ndoSomethingElse();\n\n }" | ||
} ] | ||
}, { | ||
"totalfiles" : 0 | ||
}, { | ||
"totalsize" : 0 | ||
}, { | ||
"code" : "FUNCTION_TOO_COMPLEX", | ||
"count" : 1 | ||
}, { | ||
"severity" : "WARNING", | ||
"count" : 1 | ||
} ] |
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
42 changes: 26 additions & 16 deletions
42
src/test/resources/com/cflint/tests/EmptyFile/foo.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 |
---|---|---|
@@ -1,17 +1,27 @@ | ||
[ { | ||
"severity" : "WARNING", | ||
"id" : "AVOID_EMPTY_FILES", | ||
"message" : "AVOID_EMPTY_FILES", | ||
"category" : "CFLINT", | ||
"abbrev" : "AE", | ||
"locations" : [ { | ||
"file" : "src\\test\\resources\\com\\cflint\\tests\\EmptyFile\\foo.cfc", | ||
"fileName" : "foo.cfc", | ||
"function" : "", | ||
"column" : 1, | ||
"line" : 1, | ||
"message" : "CF file is empty: ${file}", | ||
"variable" : "", | ||
"expression" : "" | ||
} ] | ||
[ { | ||
"severity" : "WARNING", | ||
"id" : "AVOID_EMPTY_FILES", | ||
"message" : "AVOID_EMPTY_FILES", | ||
"category" : "CFLINT", | ||
"abbrev" : "AE", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/EmptyFile/foo.cfc", | ||
"fileName" : "foo.cfc", | ||
"function" : "", | ||
"column" : 1, | ||
"line" : 1, | ||
"message" : "CF file is empty: ${file}", | ||
"variable" : "", | ||
"expression" : "" | ||
} ] | ||
}, { | ||
"totalfiles" : 0 | ||
}, { | ||
"totalsize" : 0 | ||
}, { | ||
"code" : "AVOID_EMPTY_FILES", | ||
"count" : 1 | ||
}, { | ||
"severity" : "WARNING", | ||
"count" : 1 | ||
} ] |
42 changes: 26 additions & 16 deletions
42
src/test/resources/com/cflint/tests/EmptyFile/fooWS.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 |
---|---|---|
@@ -1,17 +1,27 @@ | ||
[ { | ||
"severity" : "WARNING", | ||
"id" : "AVOID_EMPTY_FILES", | ||
"message" : "AVOID_EMPTY_FILES", | ||
"category" : "CFLINT", | ||
"abbrev" : "AE", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/EmptyFile/fooWS.cfc", | ||
"fileName" : "fooWS.cfc", | ||
"function" : "", | ||
"column" : 1, | ||
"line" : 1, | ||
"message" : "CF file is empty: ${file}", | ||
"variable" : "", | ||
"expression" : "" | ||
} ] | ||
[ { | ||
"severity" : "WARNING", | ||
"id" : "AVOID_EMPTY_FILES", | ||
"message" : "AVOID_EMPTY_FILES", | ||
"category" : "CFLINT", | ||
"abbrev" : "AE", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/EmptyFile/fooWS.cfc", | ||
"fileName" : "fooWS.cfc", | ||
"function" : "", | ||
"column" : 1, | ||
"line" : 1, | ||
"message" : "CF file is empty: ${file}", | ||
"variable" : "", | ||
"expression" : "" | ||
} ] | ||
}, { | ||
"totalfiles" : 0 | ||
}, { | ||
"totalsize" : 0 | ||
}, { | ||
"code" : "AVOID_EMPTY_FILES", | ||
"count" : 1 | ||
}, { | ||
"severity" : "WARNING", | ||
"count" : 1 | ||
} ] |
6 changes: 5 additions & 1 deletion
6
src/test/resources/com/cflint/tests/ExcludesAll/someErrors.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 |
---|---|---|
@@ -1 +1,5 @@ | ||
[ ] | ||
[ { | ||
"totalfiles" : 0 | ||
}, { | ||
"totalsize" : 0 | ||
} ] |
Oops, something went wrong.