@@ -16,14 +16,14 @@ var excludeExtensions = [".jpg", ".jpeg", ".png", ".gif"];
16
16
var printIssue = function ( fileName , lineNum , matchedString ) {
17
17
var issue = {
18
18
"type" : "issue" ,
19
- "check_name" : "FIXME found" ,
19
+ "check_name" : matchedString ,
20
20
"description" : matchedString + " found" ,
21
21
"categories" : [ "Bug Risk" ] ,
22
22
"location" :{
23
23
"path" : fileName ,
24
24
"lines" : {
25
25
"begin" : lineNum ,
26
- "end" : lineNum
26
+ "end" : lineNum
27
27
}
28
28
}
29
29
} ;
@@ -44,7 +44,7 @@ var findFixmes = function(file){
44
44
if ( results !== "" ) {
45
45
// Parses grep output
46
46
var lines = results . split ( "\n" ) ;
47
-
47
+
48
48
lines . forEach ( function ( line , index , array ) {
49
49
// grep spits out an extra line that we can ignore
50
50
if ( index < ( array . length - 1 ) ) {
@@ -57,7 +57,7 @@ var findFixmes = function(file){
57
57
var matchedString = cols [ 2 ] ;
58
58
59
59
if ( matchedString !== undefined ) {
60
- printIssue ( fileName , lineNum , matchedString ) ;
60
+ printIssue ( fileName , parseInt ( lineNum ) , matchedString ) ;
61
61
}
62
62
}
63
63
} )
@@ -82,7 +82,7 @@ var fileWalk = function(excludePaths){
82
82
analysisFiles . push ( file ) ;
83
83
}
84
84
} ) ;
85
-
85
+
86
86
return analysisFiles ;
87
87
}
88
88
0 commit comments