File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
var glob = require ( 'glob' ) ;
2
2
var exec = require ( 'child_process' ) . exec ;
3
+ var fs = require ( 'fs' ) ;
3
4
4
5
module . exports = FixMe ;
5
6
function FixMe ( ) { }
6
7
7
8
// Strings to scan for in source
8
- var fixmeStrings = "'FIXME|TODO|HACK|BUG'" ;
9
+ var fixmeStrings = "'FIXME|TODO|HACK|XXX| BUG'" ;
9
10
10
11
// Prints properly structured Issue data to STDOUT according to
11
12
// Code Climate Engine specification.
@@ -73,10 +74,10 @@ var fileWalk = function(excludePaths){
73
74
74
75
FixMe . prototype . runEngine = function ( ) {
75
76
// Pull engine config from env for exclude files
76
- var config = JSON . parse ( process . env . ENGINE_CONFIG ) ;
77
+ var engineConfig = JSON . parse ( fs . readFileSync ( "/config.json" ) ) ;
77
78
78
79
// Walk /code/ path and find files to analyze
79
- var analysisFiles = fileWalk ( config . exclude_paths ) ;
80
+ var analysisFiles = fileWalk ( engineConfig . exclude_paths ) ;
80
81
81
82
// Execute main loop and find fixmes in valid files
82
83
analysisFiles . forEach ( function ( f , i , a ) {
You can’t perform that action at this time.
0 commit comments