pub struct RulesConfig {Show 16 fields
pub unused_files: Severity,
pub unused_exports: Severity,
pub unused_types: Severity,
pub unused_dependencies: Severity,
pub unused_dev_dependencies: Severity,
pub unused_optional_dependencies: Severity,
pub unused_enum_members: Severity,
pub unused_class_members: Severity,
pub unresolved_imports: Severity,
pub unlisted_dependencies: Severity,
pub duplicate_exports: Severity,
pub type_only_dependencies: Severity,
pub test_only_dependencies: Severity,
pub circular_dependencies: Severity,
pub boundary_violation: Severity,
pub coverage_gaps: Severity,
}Expand description
Per-issue-type severity configuration.
Controls which issue types cause CI failure, are reported as warnings,
or are suppressed entirely. All fields default to Severity::Error.
Rule names use kebab-case in config files (e.g., "unused-files": "error").
Fields§
§unused_files: Severity§unused_exports: Severity§unused_types: Severity§unused_dependencies: Severity§unused_dev_dependencies: Severity§unused_optional_dependencies: Severity§unused_enum_members: Severity§unused_class_members: Severity§unresolved_imports: Severity§unlisted_dependencies: Severity§duplicate_exports: Severity§type_only_dependencies: Severity§test_only_dependencies: Severity§circular_dependencies: Severity§boundary_violation: Severity§coverage_gaps: SeverityImplementations§
Source§impl RulesConfig
impl RulesConfig
Sourcepub const fn apply_partial(&mut self, partial: &PartialRulesConfig)
pub const fn apply_partial(&mut self, partial: &PartialRulesConfig)
Apply a partial rules config on top. Only Some fields override.
Trait Implementations§
Source§impl Clone for RulesConfig
impl Clone for RulesConfig
Source§fn clone(&self) -> RulesConfig
fn clone(&self) -> RulesConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 RulesConfig
impl Debug for RulesConfig
Source§impl Default for RulesConfig
impl Default for RulesConfig
Source§impl<'de> Deserialize<'de> for RulesConfig
impl<'de> Deserialize<'de> for RulesConfig
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 RulesConfig
impl JsonSchema for RulesConfig
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 RulesConfig
impl RefUnwindSafe for RulesConfig
impl Send for RulesConfig
impl Sync for RulesConfig
impl Unpin for RulesConfig
impl UnsafeUnpin for RulesConfig
impl UnwindSafe for RulesConfig
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