Skip to main content

PartialRulesConfig

Struct PartialRulesConfig 

Source
pub struct PartialRulesConfig {
Show 57 fields pub unused_files: Option<Severity>, pub unused_exports: Option<Severity>, pub unused_types: Option<Severity>, pub private_type_leaks: Option<Severity>, pub deprecated_exports_in_use: Option<Severity>, pub unused_dependencies: Option<Severity>, pub unused_dev_dependencies: Option<Severity>, pub unused_optional_dependencies: Option<Severity>, pub unused_enum_members: Option<Severity>, pub unused_class_members: Option<Severity>, pub unused_store_members: Option<Severity>, pub unprovided_injects: Option<Severity>, pub unrendered_components: Option<Severity>, pub unused_component_props: Option<Severity>, pub unused_component_emits: Option<Severity>, pub unused_component_inputs: Option<Severity>, pub unused_component_outputs: Option<Severity>, pub unused_svelte_events: Option<Severity>, pub unused_server_actions: Option<Severity>, pub unused_load_data_keys: Option<Severity>, pub prop_drilling: Option<Severity>, pub thin_wrapper: Option<Severity>, pub duplicate_prop_shape: Option<Severity>, pub css_token_drift: Option<Severity>, pub css_duplicate_block: Option<Severity>, pub css_selector_complexity: Option<Severity>, pub css_dead_surface: Option<Severity>, pub css_broken_reference: Option<Severity>, pub complexity_cyclomatic: Option<Severity>, pub complexity_cognitive: Option<Severity>, pub complexity_crap: Option<Severity>, pub unresolved_imports: Option<Severity>, pub unlisted_dependencies: Option<Severity>, pub duplicate_exports: Option<Severity>, pub type_only_dependencies: Option<Severity>, pub test_only_dependencies: Option<Severity>, pub dev_dependencies_in_production: Option<Severity>, pub circular_dependencies: Option<Severity>, pub re_export_cycle: Option<Severity>, pub boundary_violation: Option<Severity>, pub coverage_gaps: Option<Severity>, pub feature_flags: Option<Severity>, pub stale_suppressions: Option<Severity>, pub require_suppression_reason: Option<Severity>, pub unused_catalog_entries: Option<Severity>, pub empty_catalog_groups: Option<Severity>, pub unresolved_catalog_references: Option<Severity>, pub unused_dependency_overrides: Option<Severity>, pub misconfigured_dependency_overrides: Option<Severity>, pub security_client_server_leak: Option<Severity>, pub security_sink: Option<Severity>, pub policy_violation: Option<Severity>, pub invalid_client_export: Option<Severity>, pub mixed_client_server_barrel: Option<Severity>, pub misplaced_directive: Option<Severity>, pub route_collision: Option<Severity>, pub dynamic_segment_name_conflict: Option<Severity>,
}
Expand description

Partial per-issue-type severity for overrides. All fields optional.

Fields§

§unused_files: Option<Severity>

Optional override for RulesConfig::unused_files.

§unused_exports: Option<Severity>

Optional override for RulesConfig::unused_exports.

§unused_types: Option<Severity>

Optional override for RulesConfig::unused_types.

§private_type_leaks: Option<Severity>

Optional override for RulesConfig::private_type_leaks.

§deprecated_exports_in_use: Option<Severity>§unused_dependencies: Option<Severity>

Optional override for RulesConfig::unused_dependencies.

§unused_dev_dependencies: Option<Severity>

Optional override for RulesConfig::unused_dev_dependencies.

§unused_optional_dependencies: Option<Severity>§unused_enum_members: Option<Severity>

Optional override for RulesConfig::unused_enum_members.

§unused_class_members: Option<Severity>

Optional override for RulesConfig::unused_class_members.

§unused_store_members: Option<Severity>

Optional override for RulesConfig::unused_store_members.

§unprovided_injects: Option<Severity>

Optional override for RulesConfig::unprovided_injects.

§unrendered_components: Option<Severity>

Optional override for RulesConfig::unrendered_components.

§unused_component_props: Option<Severity>

Optional override for RulesConfig::unused_component_props.

§unused_component_emits: Option<Severity>

Optional override for RulesConfig::unused_component_emits.

§unused_component_inputs: Option<Severity>

Optional override for RulesConfig::unused_component_inputs.

§unused_component_outputs: Option<Severity>§unused_svelte_events: Option<Severity>

Optional override for RulesConfig::unused_svelte_events.

§unused_server_actions: Option<Severity>

Optional override for RulesConfig::unused_server_actions.

§unused_load_data_keys: Option<Severity>

Optional override for RulesConfig::unused_load_data_keys.

§prop_drilling: Option<Severity>

Optional override for RulesConfig::prop_drilling.

§thin_wrapper: Option<Severity>

Optional override for RulesConfig::thin_wrapper.

§duplicate_prop_shape: Option<Severity>

Optional override for RulesConfig::duplicate_prop_shape.

§css_token_drift: Option<Severity>

Optional override for RulesConfig::css_token_drift.

§css_duplicate_block: Option<Severity>

Optional override for RulesConfig::css_duplicate_block.

§css_selector_complexity: Option<Severity>

Optional override for RulesConfig::css_selector_complexity.

§css_dead_surface: Option<Severity>

Optional override for RulesConfig::css_dead_surface.

§css_broken_reference: Option<Severity>

Optional override for RulesConfig::css_broken_reference.

§complexity_cyclomatic: Option<Severity>

Optional override for RulesConfig::complexity_cyclomatic.

§complexity_cognitive: Option<Severity>

Optional override for RulesConfig::complexity_cognitive.

§complexity_crap: Option<Severity>

Optional override for RulesConfig::complexity_crap.

§unresolved_imports: Option<Severity>

Optional override for RulesConfig::unresolved_imports.

§unlisted_dependencies: Option<Severity>

Optional override for RulesConfig::unlisted_dependencies.

§duplicate_exports: Option<Severity>

Optional override for RulesConfig::duplicate_exports.

§type_only_dependencies: Option<Severity>

Optional override for RulesConfig::type_only_dependencies.

§test_only_dependencies: Option<Severity>

Optional override for RulesConfig::test_only_dependencies.

§dev_dependencies_in_production: Option<Severity>§circular_dependencies: Option<Severity>

Optional override for RulesConfig::circular_dependencies.

§re_export_cycle: Option<Severity>

Optional override for RulesConfig::re_export_cycle.

§boundary_violation: Option<Severity>

Optional override for RulesConfig::boundary_violation.

§coverage_gaps: Option<Severity>

Optional override for RulesConfig::coverage_gaps.

§feature_flags: Option<Severity>

Optional override for RulesConfig::feature_flags.

§stale_suppressions: Option<Severity>

Optional override for RulesConfig::stale_suppressions.

§require_suppression_reason: Option<Severity>§unused_catalog_entries: Option<Severity>

Optional override for RulesConfig::unused_catalog_entries.

§empty_catalog_groups: Option<Severity>

Optional override for RulesConfig::empty_catalog_groups.

§unresolved_catalog_references: Option<Severity>§unused_dependency_overrides: Option<Severity>§misconfigured_dependency_overrides: Option<Severity>§security_client_server_leak: Option<Severity>§security_sink: Option<Severity>

Optional override for RulesConfig::security_sink.

§policy_violation: Option<Severity>

Optional override for RulesConfig::policy_violation.

§invalid_client_export: Option<Severity>

Optional override for RulesConfig::invalid_client_export.

§mixed_client_server_barrel: Option<Severity>§misplaced_directive: Option<Severity>

Optional override for RulesConfig::misplaced_directive.

§route_collision: Option<Severity>

Optional override for RulesConfig::route_collision.

§dynamic_segment_name_conflict: Option<Severity>

Trait Implementations§

Source§

impl Clone for PartialRulesConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PartialRulesConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PartialRulesConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PartialRulesConfig

Source§

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 PartialRulesConfig

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
Source§

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 more
Source§

impl Serialize for PartialRulesConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more