Log and emit diagnostic if incorrectly named files are found

This commit is contained in:
Michael B. Gale
2026-01-30 13:09:01 +00:00
parent 5ba3b679dd
commit 1b5ed129ac
4 changed files with 53 additions and 0 deletions

View File

@@ -119,6 +119,12 @@ namespace Semmle.Util
/// <returns>True if we are running on macOS.</returns>
bool IsMacOs();
/// <summary>
/// Gets a value indicating whether we are running on Linux.
/// </summary>
/// <returns>True if we are running on Linux.</returns>
bool IsLinux();
/// <summary>
/// Gets a value indicating whether we are running on Apple Silicon.
/// </summary>
@@ -246,6 +252,8 @@ namespace Semmle.Util
bool IBuildActions.IsMacOs() => RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
bool IBuildActions.IsLinux() => RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
bool IBuildActions.IsRunningOnAppleSilicon()
{
var thisBuildActions = (IBuildActions)this;