Function rslint_cli::remap_diagnostics_to_level [−][src]
pub fn remap_diagnostics_to_level(
diagnostics: &mut Vec<Diagnostic>,
level: RuleLevel
)
Expand description
Remap each error diagnostic to a warning diagnostic based on the rule’s level. this leaves warnings untouched because rules should be able to emit errors and warnings for context without the warnings being remapped to errors.