Skip to content
ocx
install

CascadeCheckReport

CascadeCheckReportclassdataclass#

Re-exported from ocx_sdk._resultsView source
class 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

NameTypeDescription
reportstuple[CascadeReport, ...]One entry per package audited.
exit_codeint0 when everything agreed, 65 when anything did not.

exit_codeattributeclass attributeinstance attribute#

exit_code: int = 0

reportsattributeinstance attribute#

reports: tuple[CascadeReport, ...]

cleanproperty#

clean: bool

Whether the audit found nothing — the exit code’s answer.

from_jsonmethodclassmethod#

def from_json(raw: str, *, exit_code: int = 0) -> CascadeCheckReport

Parse ocx --format json package cascade check output.

Parameters

NameTypeDefaultDescription
rawstrrequiredCaptured stdout.
exit_codeint0The process’s exit status, carried onto the result.