File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var fs = require("fs");
88var glob = require ( "glob" ) ;
99var options = { extensions : [ ".js" ] , ignore : true , reset : false , useEslintrc : true } ;
1010var cli = new CLIEngine ( options ) ;
11+ var debug = false ;
1112var checks = require ( "../lib/checks" ) ;
1213
1314// a wrapper for emitting perf timing
@@ -175,6 +176,10 @@ runWithTiming("engineConfig", function () {
175176 if ( userConfig . extensions ) {
176177 options . extensions = userConfig . extensions ;
177178 }
179+
180+ if ( userConfig . debug ) {
181+ debug = true ;
182+ }
178183 }
179184} ) ;
180185
@@ -184,13 +189,17 @@ var analysisFiles = runWithTiming("buildFileList", function() {
184189
185190function analyzeFiles ( ) {
186191 var batchNum = 0 ,
187- batchSize = 100 ,
192+ batchSize = 1 ,
188193 batchFiles ,
189194 batchReport ;
190195
191196 while ( analysisFiles . length > 0 ) {
192197 batchFiles = analysisFiles . splice ( 0 , batchSize ) ;
193198
199+ if ( debug ) {
200+ process . stderr . write ( "Analyzing: " + batchFiles + "\n" ) ;
201+ }
202+
194203 runWithTiming ( "analyze-batch-" + batchNum , function ( ) {
195204 batchReport = cli . executeOnFiles ( batchFiles ) ;
196205 } ) ;
You can’t perform that action at this time.
0 commit comments