Struct deno_lint::linter::LinterContext
source · pub struct LinterContext {
pub ignore_file_directive: String,
pub ignore_diagnostic_directive: String,
pub check_unknown_rules: bool,
pub rules: Vec<&'static dyn LintRule>,
}
Expand description
A struct defining configuration of a Linter
instance.
This struct is passed along and used to construct a specific file context, just before a particular file is linted.
Fields§
§ignore_file_directive: String
§ignore_diagnostic_directive: String
§check_unknown_rules: bool
§rules: Vec<&'static dyn LintRule>
Rules are sorted by priority
Auto Trait Implementations§
impl Freeze for LinterContext
impl !RefUnwindSafe for LinterContext
impl Send for LinterContext
impl Sync for LinterContext
impl Unpin for LinterContext
impl !UnwindSafe for LinterContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more