Reduce references to Extract class

This commit is contained in:
Tamas Vajk
2024-06-12 11:12:57 +02:00
parent 11faf08ed0
commit af2a78ea4d
13 changed files with 87 additions and 89 deletions

View File

@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Reflection;
using Semmle.Util.Logging;
using CompilationInfo = (string key, string value);
@@ -110,21 +109,6 @@ namespace Semmle.Extraction
public ILogger Logger { get; private set; }
public static string Version
{
get
{
// the attribute for the git information are always attached to the entry assembly by our build system
var assembly = Assembly.GetEntryAssembly();
var versionString = assembly?.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
if (versionString == null)
{
return "unknown (not built from internal bazel workspace)";
}
return versionString.InformationalVersion;
}
}
public PathTransformer PathTransformer { get; }
}
}