Correctly handle nvika/inspectcode return codes

This commit is contained in:
Dean Herbert 2019-04-03 15:37:22 +09:00
parent caa2bdf012
commit 1dad152363
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ Task("InspectCode")
OutputFile = "inspectcodereport.xml",
});
StartProcess(nVikaToolPath, @"parsereport ""inspectcodereport.xml"" --treatwarningsaserrors");
int returnCode = StartProcess(nVikaToolPath, $@"parsereport ""{inspectcodereport}"" --treatwarningsaserrors");
if (returnCode != 0)
throw new Exception($"inspectcode failed with return code {returnCode}");
});
Task("CodeFileSanity")