restore some things

This commit is contained in:
Partouf
2020-05-28 12:18:25 +02:00
parent 2d08144798
commit b2d1027fc8
+3 -4
View File
@@ -74,7 +74,7 @@ class PVSStudioTool extends BaseTool {
args = [];
// Necessary arguments
//args.push("analyze");
args.push("analyze");
args.push("--source-file", inputFilepath);
const outputFilePath = path.join(sourceDir, "pvs-studio-log.log");
args.push("--output-file", outputFilePath);
@@ -92,13 +92,11 @@ class PVSStudioTool extends BaseTool {
args.push("--cl-params");
args = args.concat(compileFlags);
args.push(inputFilepath);
await cfgfile;
// If you are to modify this code,
// don't forget that super.runTool() does args.push(inputFilepath) inside.
const result = await super.runTool(compilationInfo, false, args);
const result = await super.runTool(compilationInfo, inputFilepath, args);
if (result.code !== 0) {
return result;
}
@@ -112,6 +110,7 @@ class PVSStudioTool extends BaseTool {
"pvs-studio-log.log");
const plogExecOptions = this.getDefaultExecOptions();
plogExecOptions.customCwd = sourceDir;
const plogConverterResult = await exec.execute(
this.plogConverterPath, plogConverterArgs, plogExecOptions);