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;
}