pub struct DeadCodeConfig {
pub enabled: bool,
pub exempt_decorators: Vec<String>,
pub exempt_kinds: Vec<String>,
pub min_symbols: usize,
}Expand description
Dead code detection configuration.
Fields§
§enabled: boolWhether dead code detection is enabled.
exempt_decorators: Vec<String>Decorator/attribute names that exempt a symbol from dead code detection
(e.g., route handlers, test fixtures, CLI commands).
This is a cross-language union — Python-specific entries like pytest.fixture
coexist with Rust-specific entries like tokio::test. Decorator names don’t
collide across languages, so a single flat list works.
exempt_kinds: Vec<String>Symbol kind strings that are exempt (e.g., “constructor”, “test”).
min_symbols: usizeMinimum number of symbol nodes before dead code analysis runs (avoids false positives on tiny graphs).
Trait Implementations§
Source§impl Clone for DeadCodeConfig
impl Clone for DeadCodeConfig
Source§fn clone(&self) -> DeadCodeConfig
fn clone(&self) -> DeadCodeConfig
Returns a duplicate 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 moreSource§impl Debug for DeadCodeConfig
impl Debug for DeadCodeConfig
Source§impl Default for DeadCodeConfig
impl Default for DeadCodeConfig
Source§impl<'de> Deserialize<'de> for DeadCodeConfigwhere
DeadCodeConfig: Default,
impl<'de> Deserialize<'de> for DeadCodeConfigwhere
DeadCodeConfig: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeadCodeConfig
impl RefUnwindSafe for DeadCodeConfig
impl Send for DeadCodeConfig
impl Sync for DeadCodeConfig
impl Unpin for DeadCodeConfig
impl UnsafeUnpin for DeadCodeConfig
impl UnwindSafe for DeadCodeConfig
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