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 CstRuleStoreparsed: SyntaxNodefile_id: usizeverbose: boolfixed_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)

Attempt to automatically fix any fixable issues and return the fixed code.

This will not run if there are syntax errors unless dirty is set to true.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Unerase this erased pointer. Read more

Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more

Turn this erasable pointer into an erased pointer. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.