File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
extensions/ql-vscode/src/variant-analysis Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,19 @@ async function processSelectedRepositories(
312
312
credentials ,
313
313
logger ,
314
314
) ;
315
+
316
+ // Run autofix.
317
+ progressForRepo ( progressUpdate ( 2 , 3 , `Running autofix` ) ) ;
318
+ await runAutofixForRepository (
319
+ nwo ,
320
+ sarifFile ,
321
+ srcRootPath ,
322
+ localAutofixPath ,
323
+ autofixOutputStoragePath ,
324
+ repoTask . resultCount ,
325
+ logger ,
326
+ outputTextFiles ,
327
+ ) ;
315
328
} ,
316
329
{
317
330
title : `Processing ${ nwo } ` ,
@@ -456,3 +469,19 @@ async function downloadPublicCommitSource(
456
469
throw new Error ( `Failed to download ${ nwo } at ${ sha } : ${ errorMessage } ` ) ;
457
470
}
458
471
}
472
+
473
+ /**
474
+ * Runs autofix for a given repository (nwo).
475
+ */
476
+ async function runAutofixForRepository (
477
+ nwo : string ,
478
+ sarifFile : string ,
479
+ srcRootPath : string ,
480
+ localAutofixPath : string ,
481
+ autofixOutputStoragePath : string ,
482
+ resultCount : number ,
483
+ logger : NotificationLogger ,
484
+ outputTextFiles : string [ ] ,
485
+ ) : Promise < void > {
486
+ // TODO
487
+ }
You can’t perform that action at this time.
0 commit comments