Struct x_lint::runner::LintEngineConfig
source · 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>
source§fn clone(&self) -> LintEngineConfig<'cfg>
fn clone(&self) -> LintEngineConfig<'cfg>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'cfg> !RefUnwindSafe for LintEngineConfig<'cfg>
impl<'cfg> Send for LintEngineConfig<'cfg>
impl<'cfg> Sync for LintEngineConfig<'cfg>
impl<'cfg> Unpin for LintEngineConfig<'cfg>
impl<'cfg> !UnwindSafe for LintEngineConfig<'cfg>
Blanket Implementations§
§impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for Twhere T: 'a + Send + Sync + Clone,
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more