- integrations
- Python
- ocx_sdk
CascadeCheckReport
CascadeCheckReportclassdataclass#
Re-exported from
ocx_sdk._resultsView sourceclass CascadeCheckReport(reports: tuple[CascadeReport, ...], exit_code: int = 0)ocx package cascade check — one audit per package, in input order.
Report-then-fail: a finding makes the process exit 65 with this
document on stdout, so the client tolerates that code and hands the
report back as a result (tolerated_report). exit_code is the process’s
own, carried so a caller can branch without re-deriving it from the rows.
Attributes
| Name | Type | Description |
|---|---|---|
reports | tuple[CascadeReport, ...] | One entry per package audited. |
exit_code | int | 0 when everything agreed, 65 when anything did not. |
exit_codeattributeclass attributeinstance attribute#
exit_code: int = 0reportsattributeinstance attribute#
reports: tuple[CascadeReport, ...]cleanproperty#
clean: boolWhether the audit found nothing — the exit code’s answer.
from_jsonmethodclassmethod#
def from_json(raw: str, *, exit_code: int = 0) -> CascadeCheckReportParse ocx --format json package cascade check output.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
raw | str | required | Captured stdout. |
exit_code | int | 0 | The process’s exit status, carried onto the result. |