File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var fs = require("fs");
8
8
var glob = require ( "glob" ) ;
9
9
var options = { extensions : [ ".js" ] , ignore : true , reset : false , useEslintrc : true } ;
10
10
var cli = new CLIEngine ( options ) ;
11
+ var debug = false ;
11
12
var checks = require ( "../lib/checks" ) ;
12
13
13
14
// a wrapper for emitting perf timing
@@ -175,6 +176,10 @@ runWithTiming("engineConfig", function () {
175
176
if ( userConfig . extensions ) {
176
177
options . extensions = userConfig . extensions ;
177
178
}
179
+
180
+ if ( userConfig . debug ) {
181
+ debug = true ;
182
+ }
178
183
}
179
184
} ) ;
180
185
@@ -191,6 +196,10 @@ function analyzeFiles() {
191
196
while ( analysisFiles . length > 0 ) {
192
197
batchFiles = analysisFiles . splice ( 0 , batchSize ) ;
193
198
199
+ if ( debug ) {
200
+ process . stderr . write ( "Analyzing: " + batchFiles + "\n" ) ;
201
+ }
202
+
194
203
runWithTiming ( "analyze-batch-" + batchNum , function ( ) {
195
204
batchReport = cli . executeOnFiles ( batchFiles ) ;
196
205
} ) ;
You can’t perform that action at this time.
0 commit comments