Microsoft.CodeAnalysis.Sarif.Errors.LogNoRulesLoaded C# (CSharp) Method

LogNoRulesLoaded() public static method

public static LogNoRulesLoaded ( IAnalysisContext context ) : void
context IAnalysisContext
return void
        public static void LogNoRulesLoaded(IAnalysisContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            // No analysis rules could be instantiated.
            context.Logger.LogConfigurationNotification(
                CreateNotification(
                    context.TargetUri,
                    ERR997_NoRulesLoaded,
                    NotificationLevel.Error,
                    null,
                    false));

            context.RuntimeErrors |= RuntimeConditions.NoRulesLoaded;
        }