-
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.
Merge remote-tracking branch 'origin/522_colu' into dev
- Loading branch information
Showing
4 changed files
with
106 additions
and
4 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
10 changes: 10 additions & 0 deletions
10
src/test/resources/com/cflint/tests/Parsing/columns/.cflintrc
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,10 @@ | ||
{ | ||
"rule" : [ ], | ||
"excludes" : [ ], | ||
"includes" : [ { | ||
"code" : "ARGUMENT_HAS_PREFIX_OR_POSTFIX" | ||
}, | ||
{ "code" : "ARGUMENT_IS_TEMPORARY"} , | ||
{ "code" : "COMPONENT_INVALID_NAME"} ], | ||
"inheritParent" : false | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/resources/com/cflint/tests/Parsing/columns/test.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,15 @@ | ||
/** | ||
* Test h | ||
*/ | ||
component { | ||
/** | ||
* Conver | ||
* @dateO | ||
*/ | ||
public string function formatDate( | ||
date dateObj | ||
) | ||
{ | ||
return dateFormat(arguments.dateObj, "mm/dd/yyyy"); | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
src/test/resources/com/cflint/tests/Parsing/columns/test.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,71 @@ | ||
{ | ||
"version" : "", | ||
"timestamp" : 0, | ||
"issues" : [ { | ||
"severity" : "INFO", | ||
"id" : "ARGUMENT_HAS_PREFIX_OR_POSTFIX", | ||
"message" : "ARGUMENT_HAS_PREFIX_OR_POSTFIX", | ||
"category" : "CFLINT", | ||
"abbrev" : "AH", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/Parsing/columns/test.cfc", | ||
"fileName" : "test.cfc", | ||
"function" : "formatDate", | ||
"column" : 11, | ||
"line" : 9, | ||
"message" : "Argument has prefix or postfix dateObj and could be named better.", | ||
"variable" : "dateObj", | ||
"expression" : "public string function formatDate(dateObj) {/n return dateFormat(arguments.dateObj, 'mm/dd/yyyy');/n/n }" | ||
} ] | ||
}, { | ||
"severity" : "INFO", | ||
"id" : "ARGUMENT_IS_TEMPORARY", | ||
"message" : "ARGUMENT_IS_TEMPORARY", | ||
"category" : "CFLINT", | ||
"abbrev" : "AI", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/Parsing/columns/test.cfc", | ||
"fileName" : "test.cfc", | ||
"function" : "formatDate", | ||
"column" : 11, | ||
"line" : 9, | ||
"message" : "Temporary argument dateObj could be named better.", | ||
"variable" : "dateObj", | ||
"expression" : "public string function formatDate(dateObj) {/n return dateFormat(arguments.dateObj, 'mm/dd/yyyy');/n/n }" | ||
} ] | ||
}, { | ||
"severity" : "INFO", | ||
"id" : "COMPONENT_INVALID_NAME", | ||
"message" : "COMPONENT_INVALID_NAME", | ||
"category" : "CFLINT", | ||
"abbrev" : "CI", | ||
"locations" : [ { | ||
"file" : "src/test/resources/com/cflint/tests/Parsing/columns/test.cfc", | ||
"fileName" : "test.cfc", | ||
"function" : "", | ||
"column" : 40, | ||
"line" : 1, | ||
"message" : "Component name test is not a valid name. Please use PascalCase and start with a capital letter.", | ||
"variable" : "", | ||
"expression" : "component {/n public string function formatDate(dateObj) {/n return dateFormat(arguments.dateObj, 'mm/dd/yyyy');/n/n }/n}" | ||
} ] | ||
} ], | ||
"counts" : { | ||
"totalFiles" : 0, | ||
"totalLines" : 0, | ||
"countByCode" : [ { | ||
"code" : "ARGUMENT_IS_TEMPORARY", | ||
"count" : 1 | ||
}, { | ||
"code" : "COMPONENT_INVALID_NAME", | ||
"count" : 1 | ||
}, { | ||
"code" : "ARGUMENT_HAS_PREFIX_OR_POSTFIX", | ||
"count" : 1 | ||
} ], | ||
"countBySeverity" : [ { | ||
"severity" : "INFO", | ||
"count" : 3 | ||
} ] | ||
} | ||
} |