mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Log and emit diagnostic if incorrectly named files are found
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user