pub struct DeadCodeFilters {Show 42 fields
pub shared_state: bool,
pub unused_files: bool,
pub unused_exports: bool,
pub unused_deps: bool,
pub unused_types: bool,
pub private_type_leaks: bool,
pub deprecated_exports_in_use: bool,
pub unused_enum_members: bool,
pub unused_class_members: bool,
pub unused_namespace_members: bool,
pub unused_protected_class_members: bool,
pub unused_store_members: bool,
pub unprovided_injects: bool,
pub unrendered_components: bool,
pub unused_component_props: bool,
pub absent_component_props: bool,
pub constant_parameters: bool,
pub unused_component_emits: bool,
pub unused_component_inputs: bool,
pub unused_component_outputs: bool,
pub unused_svelte_events: bool,
pub unused_effect_layers: bool,
pub unused_tagged_errors: bool,
pub unproduced_catch_tags: bool,
pub unused_server_actions: bool,
pub unused_load_data_keys: bool,
pub unresolved_imports: bool,
pub unlisted_deps: bool,
pub unlisted_binaries: bool,
pub duplicate_exports: bool,
pub duplicate_export_aliases: bool,
pub circular_deps: bool,
pub re_export_cycles: bool,
pub package_cycles: bool,
pub boundary_violations: bool,
pub policy_violations: bool,
pub stale_suppressions: bool,
pub unused_catalog_entries: bool,
pub empty_catalog_groups: bool,
pub unresolved_catalog_references: bool,
pub unused_dependency_overrides: bool,
pub misconfigured_dependency_overrides: bool,
}Expand description
Issue-type filters for the dead-code analysis.
Each flag opts one issue type into the report. When no flag is enabled the analysis reports every issue type.
Fields§
Request advisory shared-state observations and an explicit finding selection.
unused_files: boolFiles never reached from any entry point.
unused_exports: boolExported symbols never imported elsewhere.
unused_deps: boolDeclared dependencies never imported.
unused_types: boolExported types never referenced.
private_type_leaks: boolExported APIs that expose non-exported types.
deprecated_exports_in_use: boolExports marked @deprecated that are still in use.
unused_enum_members: boolEnum members never read.
unused_class_members: boolClass members never used outside their declaration.
unused_namespace_members: boolMembers of an exported TypeScript namespace that no code reads.
unused_protected_class_members: boolprotected class members that neither the class nor a subclass reads.
unused_store_members: boolStore members (for example Pinia) never used outside the store.
unprovided_injects: boolinject calls with no matching provide.
unrendered_components: boolComponents never rendered by any template or JSX.
unused_component_props: boolDeclared component props never used.
absent_component_props: boolReview optional props omitted by known reachable callers.
constant_parameters: boolReview parameters that each visible call passes in one way.
unused_component_emits: boolDeclared component emits never used.
unused_component_inputs: boolDeclared component inputs never bound.
unused_component_outputs: boolDeclared component outputs never listened to.
unused_svelte_events: boolSvelte component events never listened to.
unused_effect_layers: boolEffect layers composed only into unused layers.
unused_tagged_errors: boolEffect tagged errors that no code produces.
catchTag handlers for a tag that no code produces.
unused_server_actions: boolServer actions never invoked.
unused_load_data_keys: boolload data keys never read by the consuming page.
unresolved_imports: boolImports that do not resolve to a file or package.
unlisted_deps: boolImported packages missing from the dependency manifest.
unlisted_binaries: boolBinaries that no installed or listed package provides.
duplicate_exports: boolThe same symbol exported more than once.
duplicate_export_aliases: boolOne binding that one module exports under two or more names.
circular_deps: boolCircular import chains.
re_export_cycles: boolCycles formed through re-export chains.
package_cycles: boolDependency cycles between workspace packages.
boundary_violations: boolImports that cross configured architecture boundaries.
policy_violations: boolViolations of configured dependency policy rules.
stale_suppressions: boolSuppression comments that no longer match a finding.
unused_catalog_entries: boolCatalog entries never referenced by a workspace package.
empty_catalog_groups: boolCatalog groups that contain no entries.
unresolved_catalog_references: boolcatalog: references without a matching catalog entry.
unused_dependency_overrides: boolDependency overrides that never affect a resolved package.
misconfigured_dependency_overrides: boolDependency overrides that cannot apply as written.
Implementations§
Source§impl DeadCodeFilters
impl DeadCodeFilters
Sourcepub fn enable_registry_selector(&mut self, selector: &str) -> bool
pub fn enable_registry_selector(&mut self, selector: &str) -> bool
Enable the issue filter addressed by a shared registry selector.
Returns false when the selector is not registered for dead-code
filtering. Callers that expose user input should surface their own
validation error with the accepted registry values.
Trait Implementations§
Source§impl Clone for DeadCodeFilters
impl Clone for DeadCodeFilters
Source§impl Debug for DeadCodeFilters
impl Debug for DeadCodeFilters
Source§impl Default for DeadCodeFilters
impl Default for DeadCodeFilters
impl Eq for DeadCodeFilters
Source§impl PartialEq for DeadCodeFilters
impl PartialEq for DeadCodeFilters
impl StructuralPartialEq for DeadCodeFilters
Auto Trait Implementations§
impl Forget for DeadCodeFilters
impl Freeze for DeadCodeFilters
impl Move for DeadCodeFilters
impl RefUnwindSafe for DeadCodeFilters
impl Send for DeadCodeFilters
impl Sync for DeadCodeFilters
impl Unpin for DeadCodeFilters
impl UnsafeUnpin for DeadCodeFilters
impl UnwindSafe for DeadCodeFilters
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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