Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

What a build or a check finds, each as a record: what it is (a code), how bad, what’s wrong and where. Written for a tool — a Yog Data frame each to the file YOG_DIAGNOSTICS names (yog_ids::env::DIAGNOSTICS) — while the text goes on as ever (each one’s Display).

Structs§

Diagnostic
One thing found.

Enums§

Severity
How bad it is.

Constants§

LIST_SEP
What separates the lines of a list of them (under its heading).

Functions§

collected
Runs command (a yog one) with its diagnostics written to a file of its own: how it went, and what it reported.
errors_reported
How many errors this run has reported so far.
failed
message reported as an error of kind code, and returned to be said.
listed
ds as the text says them, one a line, indented under a heading.
read_all
Every record in the file at path (none when there’s no file).
report
Reports d to the tool listening (if one is), once; its text is the caller’s to print.
report_all
Reports every one of ds.
reported
d reported, and returned to be said.