pub struct LintEngineConfig<'cfg> { /* private fields */ }Expand description
Configuration for the lint engine.
Implementations§
Source§impl<'cfg> LintEngineConfig<'cfg>
impl<'cfg> LintEngineConfig<'cfg>
pub fn new(core: &'cfg XCoreContext) -> Self
pub fn with_project_linters( &mut self, project_linters: &'cfg [&'cfg dyn ProjectLinter], ) -> &mut Self
pub fn with_package_linters( &mut self, package_linters: &'cfg [&'cfg dyn PackageLinter], ) -> &mut Self
pub fn with_file_path_linters( &mut self, file_path_linters: &'cfg [&'cfg dyn FilePathLinter], ) -> &mut Self
pub fn with_content_linters( &mut self, content_linters: &'cfg [&'cfg dyn ContentLinter], ) -> &mut Self
pub fn fail_fast(&mut self, fail_fast: bool) -> &mut Self
pub fn build(&self) -> LintEngine<'cfg>
Trait Implementations§
Source§impl<'cfg> Clone for LintEngineConfig<'cfg>
impl<'cfg> Clone for LintEngineConfig<'cfg>
Auto Trait Implementations§
impl<'cfg> !RefUnwindSafe for LintEngineConfig<'cfg>
impl<'cfg> !UnwindSafe for LintEngineConfig<'cfg>
impl<'cfg> Freeze for LintEngineConfig<'cfg>
impl<'cfg> Send for LintEngineConfig<'cfg>
impl<'cfg> Sync for LintEngineConfig<'cfg>
impl<'cfg> Unpin for LintEngineConfig<'cfg>
impl<'cfg> UnsafeUnpin for LintEngineConfig<'cfg>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.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 moreSource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.