mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #17992 from tamasvajk/binlog/no-compilations
C#: Consider the extraction of empty binlog files acceptable
This commit is contained in:
@@ -161,7 +161,15 @@ namespace Semmle.Extraction.CSharp
|
||||
var allCompilationData = reader.ReadAllCompilationData(filter);
|
||||
var allFailed = true;
|
||||
|
||||
logger.LogInfo($" Found {allCompilationData.Count} compilations in binary log");
|
||||
if (allCompilationData.Count == 0)
|
||||
{
|
||||
logger.LogWarning(" No compilations found in binary log.");
|
||||
return ExitCode.Ok;
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.LogInfo($" Found {allCompilationData.Count} compilations in binary log");
|
||||
}
|
||||
|
||||
foreach (var compilationData in allCompilationData)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user