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:
@@ -123,7 +123,7 @@ public static class AbCipDriverFactoryExtensions
|
||||
/// <c>Tag.Timeout</c> setter throws <see cref="ArgumentOutOfRangeException"/> for a
|
||||
/// non-positive value, which would otherwise fault tag creation on every read/write; clamping
|
||||
/// here keeps a misconfigured <c>TimeoutMs: 0</c> running on the default bound instead. (Driver
|
||||
/// timeout hardening, sibling of the S7 R2-01 read-leg fix.)
|
||||
/// timeout hardening, sibling of the S7 read-leg fix.)
|
||||
/// </summary>
|
||||
/// <param name="ms">The operator-supplied timeout in milliseconds, or null.</param>
|
||||
/// <param name="defaultMs">The default applied when <paramref name="ms"/> is null or non-positive.</param>
|
||||
@@ -132,7 +132,7 @@ public static class AbCipDriverFactoryExtensions
|
||||
TimeSpan.FromMilliseconds(ms is int v and > 0 ? v : defaultMs);
|
||||
|
||||
// tagName null = a driver-level (or device-level) config field: the error text names the driver config,
|
||||
// not a tag. Never pass a placeholder like "device" as tagName — it renders as "tag 'device'" (#574).
|
||||
// not a tag. Never pass a placeholder like "device" as tagName — it renders as "tag 'device'".
|
||||
private static T ParseEnum<T>(string? raw, string? tagName, string driverInstanceId, string field,
|
||||
T? fallback = null) where T : struct, Enum
|
||||
{
|
||||
@@ -146,7 +146,7 @@ public static class AbCipDriverFactoryExtensions
|
||||
: $"AB CIP {subject} in '{driverInstanceId}' missing {field}");
|
||||
}
|
||||
// Enum.TryParse also accepts any integer string ("7"), defined or not; an undefined value would
|
||||
// otherwise fall through to a switch's default arm silently (Task 22 review r1 M2).
|
||||
// otherwise fall through to a switch's default arm silently.
|
||||
return Enum.TryParse<T>(raw, ignoreCase: true, out var v) && Enum.IsDefined(v)
|
||||
? v
|
||||
: throw new InvalidOperationException(
|
||||
|
||||
Reference in New Issue
Block a user