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 - Changing JSON structure and changing expected test results
- Loading branch information
1 parent
4c39b77
commit 53f327c
Showing
102 changed files
with
2,206 additions
and
1,788 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
156 changes: 78 additions & 78 deletions
156
src/test/resources/com/cflint/integration/output.expected.json
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,78 +1,78 @@ | ||
[ { | ||
"severity" : "INFO", | ||
"id" : "COMPONENT_INVALID_NAME", | ||
"message" : "COMPONENT_INVALID_NAME", | ||
"category" : "CFLINT", | ||
"abbrev" : "CI", | ||
"locations" : [ { | ||
"file" : "C:\\Users\\Ryan\\git\\CFLint\\src\\test\\resources\\com\\cflint\\integration\\inherit\\test.cfc", | ||
"fileName" : "test.cfc", | ||
"function" : "", | ||
"column" : 0, | ||
"line" : 1, | ||
"message" : "Component name test is not a valid name. Please use CamelCase and start with a capital letter.", | ||
"variable" : "", | ||
"expression" : "component {\n public string function getStringFromStruct(interestingVar) {\n return interestingVar;\n\n }\n}" | ||
} ] | ||
}, { | ||
"severity" : "INFO", | ||
"id" : "FUNCTION_HINT_MISSING", | ||
"message" : "FUNCTION_HINT_MISSING", | ||
"category" : "CFLINT", | ||
"abbrev" : "FH", | ||
"locations" : [ { | ||
"file" : "C:\\Users\\Ryan\\git\\CFLint\\src\\test\\resources\\com\\cflint\\integration\\inherit\\test.cfc", | ||
"fileName" : "test.cfc", | ||
"function" : "getStringFromStruct", | ||
"column" : 16, | ||
"line" : 2, | ||
"message" : "Function getStringFromStruct is missing a hint.", | ||
"variable" : "getStringFromStruct", | ||
"expression" : "public string function getStringFromStruct(interestingVar) {\n return interestingVar;\n\n }" | ||
} ] | ||
}, { | ||
"severity" : "INFO", | ||
"id" : "FUNCTION_HINT_MISSING", | ||
"message" : "FUNCTION_HINT_MISSING", | ||
"category" : "CFLINT", | ||
"abbrev" : "FH", | ||
"locations" : [ { | ||
"file" : "C:\\Users\\Ryan\\git\\CFLint\\src\\test\\resources\\com\\cflint\\integration\\standalone\\test.cfc", | ||
"fileName" : "test.cfc", | ||
"function" : "getStringFromStruct", | ||
"column" : 16, | ||
"line" : 2, | ||
"message" : "Function getStringFromStruct is missing a hint.", | ||
"variable" : "getStringFromStruct", | ||
"expression" : "public string function getStringFromStruct(interestingVar) {\n return interestingVar;\n\n }" | ||
} ] | ||
}, { | ||
"severity" : "INFO", | ||
"id" : "FUNCTION_HINT_MISSING", | ||
"message" : "FUNCTION_HINT_MISSING", | ||
"category" : "CFLINT", | ||
"abbrev" : "FH", | ||
"locations" : [ { | ||
"file" : "C:\\Users\\Ryan\\git\\CFLint\\src\\test\\resources\\com\\cflint\\integration\\test.cfc", | ||
"fileName" : "test.cfc", | ||
"function" : "getStringFromStruct", | ||
"column" : 16, | ||
"line" : 2, | ||
"message" : "Function getStringFromStruct is missing a hint.", | ||
"variable" : "getStringFromStruct", | ||
"expression" : "public string function getStringFromStruct(interestingVar) {\n return interestingVar;\n\n }" | ||
} ] | ||
}, { | ||
"totalfiles" : 3 | ||
}, { | ||
"totalsize" : 18 | ||
}, { | ||
"code" : "FUNCTION_HINT_MISSING", | ||
"count" : 3 | ||
}, { | ||
"code" : "COMPONENT_INVALID_NAME", | ||
"count" : 1 | ||
}, { | ||
"severity" : "INFO", | ||
"count" : 4 | ||
} ] | ||
{ | ||
"issues" : [ { | ||
"severity" : "INFO", | ||
"id" : "COMPONENT_INVALID_NAME", | ||
"message" : "COMPONENT_INVALID_NAME", | ||
"category" : "CFLINT", | ||
"abbrev" : "CI", | ||
"locations" : [ { | ||
"fileName" : "test.cfc", | ||
"function" : "", | ||
"column" : 0, | ||
"line" : 1, | ||
"message" : "Component name test is not a valid name. Please use CamelCase and start with a capital letter.", | ||
"variable" : "", | ||
"expression" : "component {/n public string function getStringFromStruct(interestingVar) {/n return interestingVar;/n/n }/n}" | ||
} ] | ||
}, { | ||
"severity" : "INFO", | ||
"id" : "FUNCTION_HINT_MISSING", | ||
"message" : "FUNCTION_HINT_MISSING", | ||
"category" : "CFLINT", | ||
"abbrev" : "FH", | ||
"locations" : [ { | ||
"fileName" : "test.cfc", | ||
"function" : "getStringFromStruct", | ||
"column" : 16, | ||
"line" : 2, | ||
"message" : "Function getStringFromStruct is missing a hint.", | ||
"variable" : "getStringFromStruct", | ||
"expression" : "public string function getStringFromStruct(interestingVar) {/n return interestingVar;/n/n }" | ||
} ] | ||
}, { | ||
"severity" : "INFO", | ||
"id" : "FUNCTION_HINT_MISSING", | ||
"message" : "FUNCTION_HINT_MISSING", | ||
"category" : "CFLINT", | ||
"abbrev" : "FH", | ||
"locations" : [ { | ||
"fileName" : "test.cfc", | ||
"function" : "getStringFromStruct", | ||
"column" : 16, | ||
"line" : 2, | ||
"message" : "Function getStringFromStruct is missing a hint.", | ||
"variable" : "getStringFromStruct", | ||
"expression" : "public string function getStringFromStruct(interestingVar) {/n return interestingVar;/n/n }" | ||
} ] | ||
}, { | ||
"severity" : "INFO", | ||
"id" : "FUNCTION_HINT_MISSING", | ||
"message" : "FUNCTION_HINT_MISSING", | ||
"category" : "CFLINT", | ||
"abbrev" : "FH", | ||
"locations" : [ { | ||
"fileName" : "test.cfc", | ||
"function" : "getStringFromStruct", | ||
"column" : 16, | ||
"line" : 2, | ||
"message" : "Function getStringFromStruct is missing a hint.", | ||
"variable" : "getStringFromStruct", | ||
"expression" : "public string function getStringFromStruct(interestingVar) {/n return interestingVar;/n/n }" | ||
} ] | ||
} ], | ||
"summary" : { | ||
"totalfiles" : 3, | ||
"totalsize" : 18, | ||
"countByCode" : [ { | ||
"code" : "FUNCTION_HINT_MISSING", | ||
"count" : 3 | ||
}, { | ||
"code" : "COMPONENT_INVALID_NAME", | ||
"count" : 1 | ||
} ], | ||
"countBySeverity" : [ { | ||
"severity" : "INFO", | ||
"count" : 4 | ||
} ] | ||
} | ||
} |
Oops, something went wrong.