@@ -16,14 +16,14 @@ var excludeExtensions = [".jpg", ".jpeg", ".png", ".gif"];
1616var printIssue = function ( fileName , lineNum , matchedString ) {
1717 var issue = {
1818 "type" : "issue" ,
19- "check_name" : "FIXME found" ,
19+ "check_name" : matchedString ,
2020 "description" : matchedString + " found" ,
2121 "categories" : [ "Bug Risk" ] ,
2222 "location" :{
2323 "path" : fileName ,
2424 "lines" : {
2525 "begin" : lineNum ,
26- "end" : lineNum
26+ "end" : lineNum
2727 }
2828 }
2929 } ;
@@ -44,7 +44,7 @@ var findFixmes = function(file){
4444 if ( results !== "" ) {
4545 // Parses grep output
4646 var lines = results . split ( "\n" ) ;
47-
47+
4848 lines . forEach ( function ( line , index , array ) {
4949 // grep spits out an extra line that we can ignore
5050 if ( index < ( array . length - 1 ) ) {
@@ -57,7 +57,7 @@ var findFixmes = function(file){
5757 var matchedString = cols [ 2 ] ;
5858
5959 if ( matchedString !== undefined ) {
60- printIssue ( fileName , lineNum , matchedString ) ;
60+ printIssue ( fileName , parseInt ( lineNum ) , matchedString ) ;
6161 }
6262 }
6363 } )
@@ -82,7 +82,7 @@ var fileWalk = function(excludePaths){
8282 analysisFiles . push ( file ) ;
8383 }
8484 } ) ;
85-
85+
8686 return analysisFiles ;
8787}
8888
0 commit comments