Skip to content

Commit f6bbe71

Browse files
committed
Replace cocofix with autofix
1 parent d527871 commit f6bbe71

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extensions/ql-vscode/src/variant-analysis/view-autofixes.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,9 @@ async function runAutofixForRepository(
609609
} = await getRepoStoragePaths(autofixOutputStoragePath, nwo);
610610

611611
// Get autofix binary.
612-
// Switch to Go binary in the future and have user pass full path
612+
// In the future, have user pass full path
613613
// in an environment variable instead of hardcoding part here.
614-
const cocofixBin = join(process.cwd(), localAutofixPath, "bin", "cocofix.js");
614+
const autofixBin = join(process.cwd(), localAutofixPath, "bin", "autofix");
615615

616616
// Limit number of fixes generated.
617617
const limitFixesBoolean: boolean = resultCount > MAX_NUM_FIXES;
@@ -644,7 +644,7 @@ async function runAutofixForRepository(
644644
transcriptFiles.push(tempTranscriptFilePath);
645645

646646
await runAutofixOnResults(
647-
cocofixBin,
647+
autofixBin,
648648
sarifFile,
649649
srcRootPath,
650650
tempOutputTextFilePath,
@@ -663,7 +663,7 @@ async function runAutofixForRepository(
663663
} else {
664664
// Run autofix once for all alerts.
665665
await runAutofixOnResults(
666-
cocofixBin,
666+
autofixBin,
667667
sarifFile,
668668
srcRootPath,
669669
outputTextFilePath,
@@ -709,7 +709,7 @@ async function getRepoStoragePaths(
709709
* Runs autofix on the results in the given SARIF file.
710710
*/
711711
async function runAutofixOnResults(
712-
cocofixBin: string,
712+
autofixBin: string,
713713
sarifFile: string,
714714
srcRootPath: string,
715715
outputTextFilePath: string,
@@ -753,7 +753,7 @@ async function runAutofixOnResults(
753753
}
754754

755755
await execAutofix(
756-
cocofixBin,
756+
autofixBin,
757757
autofixArgs,
758758
{
759759
cwd: workDir,

0 commit comments

Comments
 (0)