Struct rslint_core::LintResult [−][src]
pub struct LintResult<'s> {
pub parser_diagnostics: Vec<Diagnostic>,
pub rule_results: HashMap<&'static str, RuleResult>,
pub directive_diagnostics: Vec<DirectiveError>,
pub store: &'s CstRuleStore,
pub parsed: SyntaxNode,
pub file_id: usize,
pub verbose: bool,
pub fixed_code: Option<String>,
}
Expand description
The result of linting a file.
Fields
parser_diagnostics: Vec<Diagnostic>
Any diagnostics (errors, warnings, etc) emitted from the parser
rule_results: HashMap<&'static str, RuleResult>
The diagnostics emitted by each rule run
directive_diagnostics: Vec<DirectiveError>
Any warnings or errors emitted by the directive parser
store: &'s CstRuleStore
parsed: SyntaxNode
file_id: usize
verbose: bool
fixed_code: Option<String>
Implementations
Get all of the diagnostics thrown during linting, in the order of parser diagnostics, then the diagnostics of each rule sequentially.
The overall outcome of linting this file (failure, warning, success, etc)
Trait Implementations
Auto Trait Implementations
impl<'s> !RefUnwindSafe for LintResult<'s>
impl<'s> Send for LintResult<'s>
impl<'s> Sync for LintResult<'s>
impl<'s> Unpin for LintResult<'s>
impl<'s> !UnwindSafe for LintResult<'s>
Blanket Implementations
Mutably borrows from an owned value. Read more
Whether this implementor has acknowledged the 1.1.0 update to
unerase
’s documented implementation requirements. Read more