Skip to main content

Crate fallow_report_protocol

Crate fallow_report_protocol 

Source
Expand description

The language-neutral report contract of the fallow command-line tools.

This crate holds the types that every fallow report shares: the JSON error document and the verdict of a gate. A tool that emits a fallow report depends on this crate, so two tools cannot write a different shape for the same member.

The crate depends on no other fallow crate and on no JavaScript type. The schema feature derives schemars::JsonSchema for each type.

The crate version follows the fallow release. The wire version is REPORT_PROTOCOL_VERSION.

Modules§

exit_code
The process exit codes of the report contract.

Structs§

ErrorOutput
Structured JSON error emitted on stdout when --format json is active and a command fails. It carries no kind discriminator: it is distinguished from the kind-tagged success envelopes by the required error: true field, and is a document-root branch alongside FallowOutput and CodeClimateOutput in docs/output-schema.json. Agents that pass --format json and observe a non-zero exit code parse this shape from stdout.
GateFile
One file a file-judging gate names, with the reason the gate counted it.
GateOutcome
One gate’s verdict on one run.

Enums§

GateFileReason
Why a file counts for the parse-error gate, other than a parser error.
GateStatus
What a gate concluded on this run.

Constants§

REPORT_PROTOCOL_VERSION
The version of the wire contract that this crate describes.