Skip to main content

RuleSeverity

Trait RuleSeverity 

Source
pub trait RuleSeverity {
    // Required method
    fn rule_severity(&self, source: &SeveritySource<'_>) -> Severity;

    // Provided method
    fn uniform_severity(_source: &SeveritySource<'_>) -> Option<Severity>
       where Self: Sized { ... }
}
Expand description

A dead-code finding whose severity comes from the configured rules.

Required Methods§

Source

fn rule_severity(&self, source: &SeveritySource<'_>) -> Severity

The severity of this finding under source.

Provided Methods§

Source

fn uniform_severity(_source: &SeveritySource<'_>) -> Option<Severity>
where Self: Sized,

The severity that every finding of this kind has under source, or None when the severity can differ from finding to finding.

The exit-code check reads this once per collection instead of once per finding.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RuleSeverity for BoundaryCallViolationFinding

Source§

impl RuleSeverity for BoundaryCoverageViolationFinding

Source§

impl RuleSeverity for BoundaryViolationFinding

Source§

impl RuleSeverity for CircularDependencyFinding

Source§

impl RuleSeverity for DeprecatedExportInUseFinding

Source§

impl RuleSeverity for DevDependencyInProductionFinding

Source§

impl RuleSeverity for DuplicateExportFinding

Source§

impl RuleSeverity for DynamicSegmentNameConflictFinding

Source§

impl RuleSeverity for EmptyCatalogGroupFinding

Source§

impl RuleSeverity for InvalidClientExportFinding

Source§

impl RuleSeverity for MisconfiguredDependencyOverrideFinding

Source§

impl RuleSeverity for MisplacedDirectiveFinding

Source§

impl RuleSeverity for MixedClientServerBarrelFinding

Source§

impl RuleSeverity for PolicyViolationFinding

Source§

fn rule_severity(&self, _source: &SeveritySource<'_>) -> Severity

Source§

impl RuleSeverity for PrivateTypeLeakFinding

Source§

impl RuleSeverity for ReExportCycleFinding

Source§

impl RuleSeverity for RouteCollisionFinding

Source§

impl RuleSeverity for StaleSuppression

Source§

impl RuleSeverity for TestOnlyDependencyFinding

Source§

impl RuleSeverity for TypeOnlyDependencyFinding

Source§

impl RuleSeverity for UnlistedDependencyFinding

Source§

impl RuleSeverity for UnprovidedInjectFinding

Source§

impl RuleSeverity for UnrenderedComponentFinding

Source§

impl RuleSeverity for UnresolvedCatalogReferenceFinding

Source§

impl RuleSeverity for UnresolvedImportFinding

Source§

impl RuleSeverity for UnusedCatalogEntryFinding

Source§

impl RuleSeverity for UnusedClassMemberFinding

Source§

impl RuleSeverity for UnusedComponentEmitFinding

Source§

impl RuleSeverity for UnusedComponentInputFinding

Source§

impl RuleSeverity for UnusedComponentOutputFinding

Source§

impl RuleSeverity for UnusedComponentPropFinding

Source§

impl RuleSeverity for UnusedDependencyFinding

Source§

impl RuleSeverity for UnusedDependencyOverrideFinding

Source§

impl RuleSeverity for UnusedDevDependencyFinding

Source§

impl RuleSeverity for UnusedEnumMemberFinding

Source§

impl RuleSeverity for UnusedExportFinding

Source§

impl RuleSeverity for UnusedFileFinding

Source§

impl RuleSeverity for UnusedLoadDataKeyFinding

Source§

impl RuleSeverity for UnusedOptionalDependencyFinding

Source§

impl RuleSeverity for UnusedServerActionFinding

Source§

impl RuleSeverity for UnusedStoreMemberFinding

Source§

impl RuleSeverity for UnusedSvelteEventFinding

Source§

impl RuleSeverity for UnusedTypeFinding

Implementors§