docs: fill missing XML docs and strip tracking IDs from src comments

Clears CommentChecker findings in src/ (3,280 -> 209, the remainder being false
positives like PLC-5/IEEE-754/M0.0) by adding missing summaries/params/returns,
normalising inheritdoc usage, and removing Gitea/review tracking IDs while keeping
the rationale they annotated. Comment-only: comment-stripped sources are identical
to the parent commit.
This commit is contained in:
Joseph Doherty
2026-10-15 06:14:58 -04:00
parent ebcbd81fca
commit 826312befe
430 changed files with 4434 additions and 3923 deletions
@@ -4,13 +4,16 @@ using System.Text.Json.Nodes;
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Drivers;
/// <summary>
/// Shared millisecond helpers for the AB forms (#576): the driver factories bind <c>*Ms</c> integers
/// Shared millisecond helpers for the AB forms: the driver factories bind <c>*Ms</c> integers
/// while the forms edit whole seconds, so a sub-second stored value must survive an edit of an
/// unrelated field.
/// </summary>
internal static class DriverConfigMs
{
/// <summary>Reads an integer-millisecond key at <paramref name="path"/> from <paramref name="json"/>, or null.</summary>
/// <param name="json">The driver config JSON, which may be null or blank.</param>
/// <param name="path">The dot-separated key path to read.</param>
/// <returns>The integer value, or null when the key is absent or not an integer.</returns>
public static int? Read(string? json, string path)
{
if (string.IsNullOrWhiteSpace(json)) return null;
@@ -27,13 +30,18 @@ internal static class DriverConfigMs
catch (JsonException) { return null; }
}
/// <summary>Whole seconds for display (truncating, like the pre-#576 forms).</summary>
/// <summary>Whole seconds for display (truncating, like the earlier forms).</summary>
/// <param name="t">The duration to convert.</param>
/// <returns>The whole seconds in <paramref name="t"/>.</returns>
public static int ToSeconds(TimeSpan t) => (int)t.TotalSeconds;
/// <summary>
/// The duration to save: the loaded value when the operator left the seconds field unchanged
/// (keeps 500 ms from collapsing to 0 s), else the edited whole seconds.
/// </summary>
/// <param name="seconds">The whole seconds currently shown in the form.</param>
/// <param name="loaded">The duration originally loaded from config, if any.</param>
/// <returns>The duration to persist.</returns>
public static TimeSpan Save(int seconds, TimeSpan? loaded)
=> loaded is { } l && ToSeconds(l) == seconds ? l : TimeSpan.FromSeconds(seconds);
}