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
@@ -12,7 +12,7 @@ using ZB.MOM.WW.OtOpcUa.Driver.Mqtt;
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Uns;
/// <summary>
/// Pure mapper for the WP6 "Browse device…" re-target: turns a selected driver-browse leaf into a
/// Pure mapper for the "Browse device…" re-target: turns a selected driver-browse leaf into a
/// <see cref="RawTagImportRow"/> ready for <see cref="IRawTreeService.ImportTagsAsync"/>. Under the v3
/// identity contract the tag's identity is its RawPath (device + optional group + name), so the leaf's
/// driver reference is written into the driver-typed <c>TagConfig</c> as an ordinary <b>address field</b>
@@ -30,7 +30,7 @@ public static class RawBrowseCommitMapper
/// captured <c>DriverAttributeInfo.FullName</c>) — becomes the driver-typed address field.</param>
/// <param name="browseName">The leaf's browse name. Becomes the raw tag <c>Name</c> after
/// <see cref="ToRawSegment"/> coerces it into a legal RawPath segment — a Sparkplug metric name
/// legitimately contains <c>/</c> and a Name may not (Gitea #509). The leaf's binding address is
/// legitimately contains <c>/</c> and a Name may not. The leaf's binding address is
/// unaffected: it travels separately into the <c>TagConfig</c>.</param>
/// <param name="driverDataType">The leaf's <see cref="DriverDataType"/> name (from the browse
/// attribute side-channel), or null when the browser cannot report a type (e.g. the OPC UA Client tree).</param>
@@ -72,7 +72,7 @@ public static class RawBrowseCommitMapper
}
/// <summary>
/// Coerces a browse leaf's name into a legal RawPath segment (Gitea #509): trims the ends and
/// Coerces a browse leaf's name into a legal RawPath segment: trims the ends and
/// replaces every <see cref="RawPaths.Separator"/> with <see cref="SeparatorReplacement"/>.
/// </summary>
/// <param name="browseName">The leaf's browse name, as the driver reported it.</param>
@@ -122,7 +122,7 @@ public static class RawBrowseCommitMapper
/// <returns>One operator-facing message per colliding set; empty when there is nothing to refuse.</returns>
/// <remarks>
/// Sanitising maps many names onto one — <c>A/B</c> and <c>A_B</c> both become <c>A_B</c> — and a
/// silent collision is materially worse than the refusal #509 replaced: two distinct metrics would
/// silent collision is materially worse than the refusal it replaced: two distinct metrics would
/// become one tag bound to whichever address the import happened to keep. So the coercion is only
/// safe when paired with this check.
/// <para>
@@ -205,7 +205,7 @@ public static class RawBrowseCommitMapper
/// <b>The data type is not optional decoration for AB CIP / TwinCAT / FOCAS</b> — their tag-definition
/// factories decode the wire bytes by this field, not by the raw tag row's OPC UA <c>DataType</c>. A
/// committed leaf left at the model default therefore reads real data through the wrong decoder and
/// publishes a plausible wrong number rather than an error (Gitea #536).
/// publishes a plausible wrong number rather than an error.
/// </para>
/// <para>
/// <b>MQTT is the one driver whose address is not a single string</b> — a Sparkplug tag binds by a
@@ -214,13 +214,13 @@ public static class RawBrowseCommitMapper
/// </para>
/// <para>
/// <b>MTConnect binds by the driver-AGNOSTIC type, so it is forwarded from
/// <paramref name="driverDataType"/> rather than from a stated native field</b> (Gitea #560). Its
/// <paramref name="driverDataType"/> rather than from a stated native field</b>. Its
/// coercion type IS a <see cref="DriverDataType"/> — the very enum the browse leaf carries, produced
/// by the driver's own <c>/probe</c> inference — so there is no separate native spelling for the
/// browser to state and nothing to re-derive. Left unforwarded, the model's <c>String</c> default was
/// written as a non-blank authored type, which OUT-RANKS that same inference at the driver: every
/// browsed SAMPLE published text into the numeric node <see cref="MapLeaf"/> had just typed from the
/// identical inference. Same defect class as #536, one door along.
/// identical inference. Same defect class as the type-inference bug above, one door along.
/// </para>
/// </summary>
/// <param name="driverType">The owning device's driver type.</param>
@@ -268,7 +268,7 @@ public static class RawBrowseCommitMapper
// editor's canonical spelling is fullName — committing under the generic key below would open
// in that editor with an EMPTY id field and blank it on save.
//
// The coercion type is the leaf's own inferred DriverDataType (#560) — see the remarks above.
// The coercion type is the leaf's own inferred DriverDataType — see the remarks above.
// A stated native "dataType" address field still wins where a browser supplies one, so this
// branch reads exactly like its AB CIP / TwinCAT / FOCAS siblings; the difference is only that
// MTConnect's fallback is the leaf's inference rather than a fixed model default.
@@ -295,11 +295,11 @@ public static class RawBrowseCommitMapper
// - a driver type with a bespoke IDriverBrowser registered by AddAdminUI() — read back from the
// real registration, not a list — must NOT reach here; and
// - any type that does reach here must be named in that test's GenericKeyExemptions with a reason,
// and every name on that list must still reach here (Gitea #558) — an exemption for a driver
// and every name on that list must still reach here — an exemption for a driver
// that has since gained a branch above is a stale claim, and a silently inert one.
// The universal DiscoveryDriverBrowser's arm is not derivable from the AdminUI assembly (it needs
// the runtime drivers + the Host's IDriverFactory), so it is covered by the exemption list rather
// than mechanically — see the test's remarks for the residual trust that leaves (Gitea #555).
// than mechanically — see the test's remarks for the residual trust that leaves.
return WriteSingleKey("address", address);
}
@@ -383,7 +383,7 @@ public static class RawBrowseCommitMapper
/// <c>BadNodeIdUnknown</c> forever with nothing to point at.
/// </para>
/// <para>
/// <b>Sql</b> (Gitea #552): a column of a table carrying no date/time column. A wide-row tag must say
/// <b>Sql</b>: a column of a table carrying no date/time column. A wide-row tag must say
/// which ROW it reads, and with no timestamp to order by the only remaining selector is a
/// <c>whereColumn</c>/<c>whereValue</c> pair — whose value is <em>data</em>, not schema, and therefore
/// is not something any browse can know. Refusing here rather than letting the import's own gate
@@ -418,7 +418,7 @@ public static class RawBrowseCommitMapper
/// <summary>
/// Describes a Sql column leaf whose wide-row binding cannot be completed from the catalog, or
/// <c>null</c> when it can (Gitea #552).
/// <c>null</c> when it can.
/// </summary>
/// <param name="browseName">The leaf's browse name, for the message.</param>
/// <param name="addressFields">The structured address the browse session stated, if any.</param>
@@ -451,7 +451,7 @@ public static class RawBrowseCommitMapper
/// <param name="fallback">The model default to keep when no usable native type was stated.</param>
/// <returns>The parsed native type, or <paramref name="fallback"/>.</returns>
/// <remarks>
/// <b>The type is READ, never derived (Gitea #536).</b> A commit used to leave this at the
/// <b>The type is READ, never derived.</b> A commit used to leave this at the
/// model default, so every browsed AB CIP leaf — a REAL, a BOOL, a STRING — was written as
/// <c>DInt</c> and the driver decoded four bytes of a float as an integer: a plausible
/// number, no error, wrong value. Deriving it from the leaf's driver-AGNOSTIC
@@ -480,7 +480,7 @@ public static class RawBrowseCommitMapper
/// Parses one stated type NAME into a driver's data-type enum, keeping <paramref name="fallback"/>
/// for anything unusable — the rule <see cref="NativeType{TEnum}"/> applies to a stated address
/// field, split out so a type that arrives by another route (MTConnect's leaf-level
/// <see cref="DriverDataType"/>, Gitea #560) is judged by exactly the same one.
/// <see cref="DriverDataType"/>) is judged by exactly the same one.
/// </summary>
/// <typeparam name="TEnum">The data-type enum the driver's tag config carries.</typeparam>
/// <param name="raw">The stated type name, or null/blank.</param>
@@ -509,7 +509,7 @@ public static class RawBrowseCommitMapper
: null;
/// <summary>
/// Combines a target-group path prefix with an optional mirrored sub-path, matching the WP5 CSV import
/// Combines a target-group path prefix with an optional mirrored sub-path, matching the CSV import
/// combine semantics: blank collapses to null, and a present prefix + suffix join with the RawPath
/// separator. Returns null when both are absent (⇒ commit at the device root).
/// </summary>
@@ -542,10 +542,10 @@ public static class RawBrowseCommitMapper
/// <remarks>
/// <para>
/// <b>A wide-row tag needs three things, not two: the table, the column, and WHICH ROW</b>
/// (Gitea #552). This branch used to emit only the first two, and a selector-less wide-row blob is
/// This branch used to emit only the first two, and a selector-less wide-row blob is
/// refused by <c>SqlEquipmentTagParser</c> and by <c>SqlTagConfigModel.Validate</c> alike — so every
/// browse-committed Sql tag was unreadable, first silently (<c>BadNodeIdUnknown</c> forever) and then,
/// once #551 put the gate on the import, loudly at commit.
/// once the gate was put on the import, loudly at commit.
/// </para>
/// <para>
/// <b>The row selector is READ from the session's stated fields, never inferred here</b> — same rule