pub struct CheckReport {
pub root: String,
pub check: &'static str,
pub concepts: usize,
pub findings: Vec<Finding>,
pub errors: usize,
pub warnings: usize,
}Expand description
The findings from one check over a bundle.
Fields§
§root: StringThe bundle root, as the caller named it.
check: &'static strWhich check produced this: validate or lint.
concepts: usizeHow many concepts were examined. Reported so that “no findings” over an empty bundle cannot be read as a clean bill of health.
findings: Vec<Finding>Findings: errors first, then warnings, then info. Within one severity, bundle order is preserved.
errors: usizeCount of error findings. Non-zero means the check failed.
warnings: usizeCount of warning findings.
Implementations§
Source§impl CheckReport
impl CheckReport
Sourcepub const fn passed(&self) -> bool
pub const fn passed(&self) -> bool
true when nothing rose to error.
Warnings deliberately do not fail: §11 tells a consumer not to reject a document over a soft-guidance deviation, and a check that failed on one would be unusable against real third-party bundles. Measured: of the 200 diagnostics upstream reports over the four published bundles, none is an error — so a gate that failed on warnings would reject the specification’s own corpus.
Trait Implementations§
Source§impl Clone for CheckReport
impl Clone for CheckReport
Source§fn clone(&self) -> CheckReport
fn clone(&self) -> CheckReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more