Added an analyzer which keeps line breaks LF on every system (#1193)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-11 19:30:00 +01:00
1 parent b1c1f13993
commit 65d50de033
96 files changed
+741 -393

No files matched your search

@@ -188,13 +188,13 @@ public partial class VisualBriefingAssistant
return;
if (outcome.Failures.Count > 0)
await this.MessageBus.SendError(new(AppIcons.VOICE_TRANSCRIPTION, string.Join(Environment.NewLine, outcome.Failures.Select(failure => $"{failure.FileName}: {failure.UserMessage}"))));
await this.MessageBus.SendError(new(AppIcons.VOICE_TRANSCRIPTION, string.Join('\n',outcome.Failures.Select(failure => $"{failure.FileName}: {failure.UserMessage}"))));
else if (outcome.Status is MediaImportStatus.FAILED)
await this.MessageBus.SendError(new(AppIcons.VOICE_TRANSCRIPTION, T("The media file could not be transcribed.")));
if (outcome.Warnings.Count > 0)
await this.MessageBus.SendWarning(new(AppIcons.VOICE_TRANSCRIPTION, string.Join(Environment.NewLine, outcome.Warnings.Select(warning => $"{warning.FileName}: {warning.UserMessage}"))));
await this.MessageBus.SendWarning(new(AppIcons.VOICE_TRANSCRIPTION, string.Join('\n',outcome.Warnings.Select(warning => $"{warning.FileName}: {warning.UserMessage}"))));
if (outcome.Status is MediaImportStatus.CANCELLED)
await this.MessageBus.SendWarning(new(AppIcons.VOICE_TRANSCRIPTION, T("The media transcription was canceled.")));
@@ -78,7 +78,7 @@ internal static partial class VisualBriefingStructuredResponseProcessor
var root = GetContract(typeof(T));
var shapes = EnumerateObjectShapes(root);
var builder = new StringBuilder();
builder.AppendLine("Strict JSON grammar generated from the active response contract:");
builder.AppendLineLF("Strict JSON grammar generated from the active response contract:");
foreach (var shape in shapes)
{
builder.Append(shape.Name);
@@ -98,7 +98,7 @@ internal static partial class VisualBriefingStructuredResponseProcessor
if (property.AllowsNull)
builder.Append(" | null");
}
builder.AppendLine("}");
builder.AppendLineLF("}");
}
builder.Append(
"Every object may contain only the properties shown above. Required properties must be present even when their value is null.");