Skip to main content

IdentifiedFinding

Trait IdentifiedFinding 

Source
pub trait IdentifiedFinding: Serialize {
    // Required methods
    fn rule_token(&self) -> &'static str;
    fn identity_parts(&self, paths: &IdentityPaths<'_>) -> Vec<String>;
    fn tiebreak_position(&self) -> (u32, u32, u32);
    fn finding_id(&self) -> Option<&str>;
    fn set_finding_id(&mut self, id: Option<String>);

    // Provided method
    fn canonical_key(&self, paths: &IdentityPaths<'_>) -> String { ... }
}
Expand description

A dead-code finding that carries a stable finding_id.

Required Methods§

Source

fn rule_token(&self) -> &'static str

The canonical issue code of this finding.

Source

fn identity_parts(&self, paths: &IdentityPaths<'_>) -> Vec<String>

The parts that name the subject of this finding. Never a line or a column.

Source

fn tiebreak_position(&self) -> (u32, u32, u32)

Line, column and span start. Used only to order findings that share a base id.

Source

fn finding_id(&self) -> Option<&str>

The stamped id, or None before the stamping pass.

Source

fn set_finding_id(&mut self, id: Option<String>)

Write the id.

Provided Methods§

Source

fn canonical_key(&self, paths: &IdentityPaths<'_>) -> String

The canonical key of this finding: the readable form of the id input. See dead_code_canonical_key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl IdentifiedFinding for AbsentComponentPropFinding

Source§

impl IdentifiedFinding for BoundaryCallViolationFinding

Source§

impl IdentifiedFinding for BoundaryCoverageViolationFinding

Source§

impl IdentifiedFinding for BoundaryViolationFinding

Source§

impl IdentifiedFinding for CircularDependencyFinding

Source§

impl IdentifiedFinding for DeprecatedExportInUseFinding

Source§

impl IdentifiedFinding for DevDependencyInProductionFinding

Source§

impl IdentifiedFinding for DuplicateExportFinding

Source§

impl IdentifiedFinding for DuplicatePropShapeFinding

Source§

impl IdentifiedFinding for DynamicSegmentNameConflictFinding

Source§

impl IdentifiedFinding for EmptyCatalogGroupFinding

Source§

impl IdentifiedFinding for InvalidClientExportFinding

Source§

impl IdentifiedFinding for MisconfiguredDependencyOverrideFinding

Source§

impl IdentifiedFinding for MisplacedDirectiveFinding

Source§

impl IdentifiedFinding for MixedClientServerBarrelFinding

Source§

impl IdentifiedFinding for PackageCycleFinding

Source§

impl IdentifiedFinding for PolicyViolationFinding

Source§

impl IdentifiedFinding for PrivateTypeLeakFinding

Source§

impl IdentifiedFinding for PropDrillingChainFinding

Source§

impl IdentifiedFinding for ReExportCycleFinding

Source§

impl IdentifiedFinding for RouteCollisionFinding

Source§

impl IdentifiedFinding for StaleSuppression

Source§

impl IdentifiedFinding for TestOnlyDependencyFinding

Source§

impl IdentifiedFinding for ThinWrapperFinding

Source§

impl IdentifiedFinding for TypeOnlyDependencyFinding

Source§

impl IdentifiedFinding for UnlistedDependencyFinding

Source§

impl IdentifiedFinding for UnprovidedInjectFinding

Source§

impl IdentifiedFinding for UnrenderedComponentFinding

Source§

impl IdentifiedFinding for UnresolvedCatalogReferenceFinding

Source§

impl IdentifiedFinding for UnresolvedImportFinding

Source§

impl IdentifiedFinding for UnusedCatalogEntryFinding

Source§

impl IdentifiedFinding for UnusedClassMemberFinding

Source§

impl IdentifiedFinding for UnusedComponentEmitFinding

Source§

impl IdentifiedFinding for UnusedComponentInputFinding

Source§

impl IdentifiedFinding for UnusedComponentOutputFinding

Source§

impl IdentifiedFinding for UnusedComponentPropFinding

Source§

impl IdentifiedFinding for UnusedDependencyFinding

Source§

impl IdentifiedFinding for UnusedDependencyOverrideFinding

Source§

impl IdentifiedFinding for UnusedDevDependencyFinding

Source§

impl IdentifiedFinding for UnusedEnumMemberFinding

Source§

impl IdentifiedFinding for UnusedExportFinding

Source§

impl IdentifiedFinding for UnusedFileFinding

Source§

impl IdentifiedFinding for UnusedLoadDataKeyFinding

Source§

impl IdentifiedFinding for UnusedOptionalDependencyFinding

Source§

impl IdentifiedFinding for UnusedServerActionFinding

Source§

impl IdentifiedFinding for UnusedStoreMemberFinding

Source§

impl IdentifiedFinding for UnusedSvelteEventFinding

Source§

impl IdentifiedFinding for UnusedTypeFinding