pub struct PathOverride {Show 23 fields
pub enabled: Option<bool>,
pub max_depth: Option<usize>,
pub forbid_attributes: Option<PatternOverride>,
pub forbid_types: Option<PatternOverride>,
pub forbid_calls: Option<PatternOverride>,
pub forbid_macros: Option<PatternOverride>,
pub check_naming: Option<NamingOverride>,
pub check_nested_if: Option<bool>,
pub check_if_in_match: Option<bool>,
pub check_nested_match: Option<bool>,
pub check_match_in_if: Option<bool>,
pub check_else_chain: Option<bool>,
pub forbid_else: Option<bool>,
pub forbid_unsafe: Option<bool>,
pub check_dyn_return: Option<bool>,
pub check_dyn_param: Option<bool>,
pub check_vec_box_dyn: Option<bool>,
pub check_dyn_field: Option<bool>,
pub check_clone_in_loop: Option<bool>,
pub check_default_hasher: Option<bool>,
pub check_mixed_concerns: Option<bool>,
pub check_inline_tests: Option<bool>,
pub check_let_underscore_result: Option<bool>,
}Expand description
Per-path overrides (e.g., for tests/**). None inherits from base config.
Fields§
§enabled: Option<bool>Some(false) disables all checks for matched paths.
max_depth: Option<usize>Replace nesting depth limit.
forbid_attributes: Option<PatternOverride>Replace forbidden attribute patterns.
forbid_types: Option<PatternOverride>Replace forbidden type patterns.
forbid_calls: Option<PatternOverride>Replace forbidden call patterns.
forbid_macros: Option<PatternOverride>Replace forbidden macro patterns.
check_naming: Option<NamingOverride>Replace generic naming thresholds.
check_nested_if: Option<bool>Replace nested-if check state.
check_if_in_match: Option<bool>Replace if-in-match check state.
check_nested_match: Option<bool>Replace nested-match check state.
check_match_in_if: Option<bool>Replace match-in-if check state.
check_else_chain: Option<bool>Replace else-chain check state.
forbid_else: Option<bool>Replace else keyword ban state.
forbid_unsafe: Option<bool>Replace unsafe block ban state.
check_dyn_return: Option<bool>Replace dyn-return check state.
check_dyn_param: Option<bool>Replace dyn-param check state.
check_vec_box_dyn: Option<bool>Replace Vec<Box<dyn T>> check state.
check_dyn_field: Option<bool>Replace dyn-field check state.
check_clone_in_loop: Option<bool>Replace clone-in-loop check state.
check_default_hasher: Option<bool>Replace default-hasher check state.
check_mixed_concerns: Option<bool>Replace mixed-concerns check state.
check_inline_tests: Option<bool>Replace inline-tests check state.
check_let_underscore_result: Option<bool>Replace let-underscore-result check state.
Trait Implementations§
Source§impl Debug for PathOverride
impl Debug for PathOverride
Source§impl Default for PathOverride
impl Default for PathOverride
Source§fn default() -> PathOverride
fn default() -> PathOverride
Source§impl<'de> Deserialize<'de> for PathOverride
impl<'de> Deserialize<'de> for PathOverride
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for PathOverride
impl RefUnwindSafe for PathOverride
impl Send for PathOverride
impl Sync for PathOverride
impl Unpin for PathOverride
impl UnsafeUnpin for PathOverride
impl UnwindSafe for PathOverride
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
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
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>
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>
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