feat(plc): say when a native CODESYS project is not analysed (#165)
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 3m37s
CI / Check (pull_request) Successful in 19m57s

A CODESYS project in its native format (the binary .project, also inside
an uploaded .projectarchive) yields no POUs, and the scan said nothing:
a target with only a native project read as clean control logic.

- plc::native_projects lists a .project that is not a PLCopen XML export
  and a readable .projectarchive (a corrupt one keeps its own
  ArchiveUnreadable note).
- The PLC scan records them as a skipped stage (plc_native_project,
  SkipCode::NativePlcProject, DE/EN) with the way out: export the POUs
  as PLCopen XML and add the export.
- A .project is parsed only when it looks like XML.
- The two CODESYS archive baselines of the nightly gain the stage; docs
  in guide/plc and guide/scanning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-04 09:52:44 +01:00
1 parent 533d5f35b5
commit 7cfea4dad2
8 files changed
+164 -2

No files matched your search

+3
View File
@@ -124,6 +124,9 @@ my-plc-project/
- Alternatively commit raw `.st` / `.exp` / `.scl` files — also analyzed.
- **Do not** commit only the binary `.project` — it cannot be parsed (and does not
diff). If you want the library SBOM, commit the **`.projectarchive`** as well.
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.
- CODESYS's built-in Git integration, which stores an exported representation,
works too — as long as the committed form is PLCopen XML / textual.
+1
View File
@@ -168,6 +168,7 @@ as a clean result: the CRA requirements it checks show as **Nicht geprüft**.
| **Abhängigkeiten (SBOM)** | *(manifest)* ohne Lockfile: Die Versionen der Abhängigkeiten und ihre CVEs sind nicht bekannt. | Commit the lockfile (see below). |
| e.g. **Firmware-Binäranalyse**, **Container-Analyse**, **Mobile-App-Analyse** | e.g. Firmware-Images werden noch nicht entpackt … | Nothing analyses these files yet; scan the source code instead. |
| **SPS-Bibliotheken (SBOM)** | *(file)* ist kein lesbares CODESYS-Projektarchiv. | Export the archive again with *File → Project Archive*, with the referenced libraries ticked. |
| **SPS-Projekt (natives Format)** | CODESYS-Projekt im nativen Format, Steuerungslogik nicht geprüft: *(files)* … | Export the POUs as PLCopen XML (*Project → Export PLCopenXML*) and add the export to the target; see [PLC / SPS](/guide/plc). |
| **Einlesen der Dateien** | *(file)* konnte nicht gelesen werden. | Check the file and upload it again under **Bearbeiten**. |
| **Archiv-Passwort fehlt (beim Prüfobjekt unter „Bearbeiten“ eingeben)** | *(file)* ist passwortgeschützt. | Enter the password under **Bearbeiten**. |
| **Archiv-Passwort falsch (beim Prüfobjekt unter „Bearbeiten“ ändern)** | Das gespeicherte Passwort öffnet *(file)* nicht. | Change the password under **Bearbeiten**. |