pub struct SyntaxReport {
pub root: String,
pub scope: &'static str,
pub checked: usize,
pub skipped: usize,
pub languages: Vec<String>,
pub findings: Vec<SyntaxFinding>,
}Expand description
The result of syntax-checking a bundle’s code blocks.
checked and skipped are both reported, deliberately. A language with no
backend compiled in is not checked rather than clean, and a report that
conflated the two would be a check that passes by not looking.
Fields§
§root: StringThe bundle root, as the caller named it.
scope: &'static strcomputations or all-blocks — what was looked at.
checked: usizeBlocks a backend actually parsed.
skipped: usizeBlocks left alone, for any of three reasons: the block carried no language tag, this build has no backend for the language it carried, or the computation named a file rather than inlining its code.
All three are “not looked at” rather than “looked at and clean”, which is the distinction the whole report exists to keep.
languages: Vec<String>The languages this build can check, so a reader can tell why.
findings: Vec<SyntaxFinding>Findings, in bundle order.
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxReport
impl Clone for SyntaxReport
Source§fn clone(&self) -> SyntaxReport
fn clone(&self) -> SyntaxReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more