pub struct IgnoreDependencyOverrideRule {
pub package: String,
pub source: Option<String>,
}Expand description
Rule for suppressing an unused-dependency-override or
misconfigured-dependency-override finding.
A finding is suppressed when ALL provided fields match the finding:
packagematches the override’s target package name exactly (case-sensitive). For parent-chain overrides (react>react-dom), the target is the rightmost segment (react-dom).source, if set, scopes the suppression to overrides declared in that source file. Accepts"pnpm-workspace.yaml"or"package.json". When omitted, both sources match.
Typical use cases:
- Library-internal CI tooling overrides we cannot drop yet
- Overrides targeting purely-transitive packages (CVE-fix pattern)
Fields§
§package: StringOverride target package name (exact match; case-sensitive).
source: Option<String>Source file scope: "pnpm-workspace.yaml" or "package.json".
None matches both sources.
Trait Implementations§
Source§impl Clone for IgnoreDependencyOverrideRule
impl Clone for IgnoreDependencyOverrideRule
Source§fn clone(&self) -> IgnoreDependencyOverrideRule
fn clone(&self) -> IgnoreDependencyOverrideRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IgnoreDependencyOverrideRule
impl Debug for IgnoreDependencyOverrideRule
Source§impl<'de> Deserialize<'de> for IgnoreDependencyOverrideRule
impl<'de> Deserialize<'de> for IgnoreDependencyOverrideRule
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
Source§impl JsonSchema for IgnoreDependencyOverrideRule
impl JsonSchema for IgnoreDependencyOverrideRule
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for IgnoreDependencyOverrideRule
impl RefUnwindSafe for IgnoreDependencyOverrideRule
impl Send for IgnoreDependencyOverrideRule
impl Sync for IgnoreDependencyOverrideRule
impl Unpin for IgnoreDependencyOverrideRule
impl UnsafeUnpin for IgnoreDependencyOverrideRule
impl UnwindSafe for IgnoreDependencyOverrideRule
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