feat: add activateWinCppcheck

This commit is contained in:
Amin Yahyaabadi 2021-09-20 07:31:05 -05:00
parent e5d7c702c7
commit 3640522fa1
1 changed files with 7 additions and 2 deletions

View File

@ -8,8 +8,7 @@ export async function setupCppcheck(version: string | undefined, _setupCppDir: s
switch (process.platform) {
case "win32": {
await setupChocoPack("cppcheck", version)
const binDir = "C:/Program Files/Cppcheck"
addPath(binDir)
const binDir = activateWinCppcheck()
return { binDir }
}
case "darwin": {
@ -23,3 +22,9 @@ export async function setupCppcheck(version: string | undefined, _setupCppDir: s
}
}
}
function activateWinCppcheck() {
const binDir = "C:/Program Files/Cppcheck"
addPath(binDir)
return binDir
}