pub struct IgnoreDependencyOverrideRule {
pub package: String,
pub source: Option<String>,
}Expand description
Rule for suppressing dependency-override findings.
Fields§
§package: StringRequired exact package name whose unused-dependency-override or misconfigured-dependency-override finding this rule suppresses; compared by string equality against the override’s target package, so one rule targets one override entry (further narrowable with the optional source filter).
source: Option<String>Optional source filter matched by exact string equality against the override’s declaring-file label: set it to "pnpm-workspace.yaml" or "package.json" to scope the suppression to overrides declared in that file, or omit it to suppress the package’s override regardless of where it is declared.
Trait Implementations§
Source§impl Clone for IgnoreDependencyOverrideRule
impl Clone for IgnoreDependencyOverrideRule
Source§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