Skip to content

Commit 2bea750

Browse files
committed
Configure code climate cli, make name more descriptive
1 parent dbf51b1 commit 2bea750

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.codeclimate.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
engines:
22
fixme:
33
enabled: true
4-
eslint:
5-
enabled: true
64
exclude_paths:
75
- "**/*.md"
6+
- "Dockerfile"
7+
- "bin/fixme"
8+
- "index.js"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
* `TODO`
66
* `FIXME`
7-
* `XXX`
87
* `HACK`
98
* `BUG`
109

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ var fixmeStrings = "'FIXME|TODO|HACK|BUG'";
99

1010
// Prints properly structured Issue data to STDOUT according to
1111
// Code Climate Engine specification.
12-
var printIssue = function(fileName, lineNum, issue){
12+
var printIssue = function(fileName, lineNum, matchedString){
1313
var issue = {
1414
"type": "issue",
1515
"check_name": "FIXME found",
16-
"description": issue + " found",
16+
"description": matchedString + " found",
1717
"categories": ["Bug Risk"],
1818
"location":{
1919
"path": fileName,
@@ -48,9 +48,9 @@ var findFixmes = function(file){
4848
// Remove remnants of container paths for external display
4949
var fileName = cols[0].split("/code/")[1];
5050
var lineNum = cols[1];
51-
var issue = cols[2];
51+
var matchedString = cols[2];
5252

53-
printIssue(fileName, lineNum, issue);
53+
printIssue(fileName, lineNum, matchedString);
5454
}
5555
})
5656
})

0 commit comments

Comments
 (0)