LibplctagConfinementGuard misses refs after // in literals, block comments, csproj #569

Closed
opened 2026-10-07 19:02:14 -04:00 by dohertj2 · 1 comment
Owner

Context: native .NET Allen-Bradley transport work (plan docs/plans/2026-10-07-native-ab-transport.md, branch feat/native-ab-transport, not yet merged). Parked as a Minor during per-task review — none of these block the plan.

LibplctagConfinementGuardTests (Ab.Transport.Tests) gaps:

  • Split("//") truncates lines inside string literals containing // (e.g. URLs) — a reference after such a literal is missed.
  • /* */ block comments are not stripped.
  • .csproj PackageReference to libplctag is not guarded — relevant when the libplctag package is finally removed.
Context: native .NET Allen-Bradley transport work (plan `docs/plans/2026-10-07-native-ab-transport.md`, branch `feat/native-ab-transport`, not yet merged). Parked as a Minor during per-task review — none of these block the plan. `LibplctagConfinementGuardTests` (Ab.Transport.Tests) gaps: - [ ] `Split("//")` truncates lines inside string literals containing `//` (e.g. URLs) — a reference after such a literal is missed. - [ ] `/* */` block comments are not stripped. - [ ] `.csproj` `PackageReference` to libplctag is not guarded — relevant when the libplctag package is finally removed.
dohertj2 added the driver/abcipdriver/ablegacy labels 2026-10-07 19:02:14 -04:00
Author
Owner

Fixed: tokenising stripper (regular/verbatim/interpolated/raw strings, char literals, // and /* */ comments) and a csproj PackageReference guard limiting libplctag to the AbCip/AbLegacy projects. (merge 29cd25de on master, pushed 2026-10-08)

Fixed: tokenising stripper (regular/verbatim/interpolated/raw strings, char literals, // and /* */ comments) and a csproj PackageReference guard limiting libplctag to the AbCip/AbLegacy projects. (merge `29cd25de` on master, pushed 2026-10-08)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#569