public void Log(ResultLevel messageKind, IAnalysisContext context, Region region, string formatId, params string[] arguments) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (context.Rule != null) { Rules[context.Rule.Id] = context.Rule; } formatId = RuleUtilities.NormalizeFormatId(context.Rule.Id, formatId); LogJsonIssue(messageKind, context.TargetUri.LocalPath, region, context.Rule.Id, formatId, arguments); }