Context given to a rule when running it.
The file id of the file being linted.
Whether the linter is run with the
Which dictates whether the linter should include more (potentially spammy) context in diagnostics.
An empty vector of diagnostics which the rule adds to.
Make a new diagnostic builder.
pub fn add_err(&mut self, diagnostic: Diagnostic)[src]
Make a new fixer for this context and return a mutable reference to it
impl RefUnwindSafe for RuleCtx
impl UnwindSafe for RuleCtx
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.