pub struct Config {
pub severity: FxHashMap<String, Severity>,
pub ignore: Vec<String>,
pub exclude_dirs: Vec<String>,
pub max_cyclomatic: u32,
pub max_cognitive: u32,
pub dup_min_tokens: usize,
pub dup_min_lines: u32,
pub arch_preset: Option<String>,
pub arch_layers: Vec<String>,
pub policies: Vec<Policy>,
pub contracts: Contracts,
}Fields§
§severity: FxHashMap<String, Severity>Override severity by rule id (e.g. “unused-export”) or category (“dead-code”). Rule id wins over category.
ignore: Vec<String>Path substrings to ignore (simple contains-match; globs later).
exclude_dirs: Vec<String>Extra directory names pruned from discovery, in addition to the
builtin denylist (VCS metadata, virtualenvs, build/cache output —
see mollify_graph::discover_python_files).
max_cyclomatic: u32§max_cognitive: u32§dup_min_tokens: usizeMinimum normalized-token window for a duplication clone (default 40).
dup_min_lines: u32Minimum line span for a duplication clone (default 5).
arch_preset: Option<String>Architecture preset name (informational): layered | hexagonal | feature-sliced | bulletproof.
arch_layers: Vec<String>Ordered layer names, top (most dependent) → bottom. A layer may import
same/lower layers; importing a higher layer is a layer-violation.
policies: Vec<Policy>Declarative rule packs: banned imports / calls, optionally path-scoped.
contracts: ContractsDeclarative import contracts (import-linter / tach style).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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