pub struct Report {
pub schema_version: u32,
pub summary: Summary,
pub missing_keys: Vec<MissingKey>,
pub inconsistent_keys: Vec<InconsistentKey>,
pub duplicate_keys: Vec<DuplicateKey>,
pub unused_keys: Vec<UnusedKey>,
pub parse_errors: Vec<ParseError>,
pub unused_severity: Severity,
}Expand description
The result of a full run. It contains findings and performs no output.
Fields§
§schema_version: u32Version of the JSON shape, bumped on any breaking change.
summary: SummaryCounts and context.
missing_keys: Vec<MissingKey>Keys used but missing from at least one locale.
inconsistent_keys: Vec<InconsistentKey>Keys that some locales define and others do not.
duplicate_keys: Vec<DuplicateKey>Keys defined more than once in one locale.
unused_keys: Vec<UnusedKey>Keys defined but never used.
parse_errors: Vec<ParseError>Fluent syntax errors.
unused_severity: SeveritySeverity configured for unused_keys, which decides the exit code.
Implementations§
Source§impl Report
impl Report
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether the run found anything that should fail the build.
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Whether the run found anything worth mentioning but not failing on.
Sourcepub fn is_vacuous(&self) -> bool
pub fn is_vacuous(&self) -> bool
Whether no locale was checked. When this is true, the coverage, and consistency checks are inapplicable.
This only happens with --require-locales=false. The run must never be reported as clean in
this case.
Sourcepub fn finding_count(&self) -> usize
pub fn finding_count(&self) -> usize
Total number of findings, at any severity.