pub struct PathOverride {Show 40 fields
pub enabled: Option<bool>,
pub max_depth: Option<usize>,
pub max_params: Option<usize>,
pub max_function_body_lines: Option<usize>,
pub source_file_warn_lines: Option<usize>,
pub source_file_deny_lines: Option<usize>,
pub max_methods: 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>,
pub check_high_param_count: Option<bool>,
pub check_long_function_body: Option<bool>,
pub check_module_root_definitions: Option<bool>,
pub check_large_source_file: Option<bool>,
pub check_high_method_count: Option<bool>,
pub count_forwarders: Option<bool>,
pub check_item_visibility_policy: Option<bool>,
pub check_ungated_test_api: Option<bool>,
pub check_conflicting_module_root: Option<bool>,
pub check_flat_module_family: Option<bool>,
pub check_feature_boundary: Option<bool>,
pub check_scattered_inherent_impl: 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.
max_params: Option<usize>Replace maximum parameter count.
max_function_body_lines: Option<usize>Replace function body line ceiling.
source_file_warn_lines: Option<usize>Replace the large-source-file warning line ceiling. Pair with a
TOML comment recording why this path is allowed to be large.
source_file_deny_lines: Option<usize>Replace the large-source-file denial line ceiling.
max_methods: Option<usize>Replace the high-method-count method ceiling.
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.
check_high_param_count: Option<bool>Replace high-param-count check state.
check_long_function_body: Option<bool>Replace long-function-body check state.
check_module_root_definitions: Option<bool>Replace module-root-definitions check state.
check_large_source_file: Option<bool>Replace large-source-file check state.
check_high_method_count: Option<bool>Replace high-method-count check state.
count_forwarders: Option<bool>Replace the forwarder-counting policy.
check_item_visibility_policy: Option<bool>Replace item-visibility-policy check state.
check_ungated_test_api: Option<bool>Replace ungated-test-api check state.
check_conflicting_module_root: Option<bool>Replace conflicting-module-root check state.
check_flat_module_family: Option<bool>Replace flat-module-family check state.
check_feature_boundary: Option<bool>Replace feature-boundary check state.
check_scattered_inherent_impl: Option<bool>Replace scattered-inherent-impl 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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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