fix(plc): test data and excluded paths leave the PLC analysis too
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m10s
CI / Check (pull_request) Successful in 17m38s

The PLC control-logic analysis reads the ingested trees itself, outside
the code scan's stages, so #820 (test data) and #825 (excluded paths)
did not reach it: fixtures and excluded paths in a PLC target were
still analysed.

- run_plc_scan prunes each source tree with prune_left_out before the
  analysis, the native-project check and the SBOM, and notes what was
  left out, as a code scan does.
- PLC findings are stored without a seen-set, so nothing used to close
  them. RunFindings::resolve_left_out closes the undecided findings of
  one scanner whose file lies in what was left out (NowExcluded,
  NowTestData), and only those; their issues follow through issue sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-04 10:14:21 +01:00
1 parent b645769f67
commit 2e9976f6b5
4 files changed
+161

No files matched your search

+3
View File
@@ -127,6 +127,9 @@ my-plc-project/
A native `.project` or `.projectarchive` without an export is listed on the
scan run under **SPS-Projekt (natives Format)**, so a missing export never
reads as clean control logic.
- Test data (`fixtures/`, `testdata/` and similar) and the paths excluded under
**Von der Prüfung ausgenommen** are left out of the control-logic analysis as
well; findings an earlier scan reported there are closed with that reason.
- CODESYS's built-in Git integration, which stores an exported representation,
works too — as long as the committed form is PLCopen XML / textual.