pub struct LintConfig {
pub severity_overrides: BTreeMap<String, Severity>,
pub disabled_rules: BTreeSet<String>,
pub extra_frontmatter_values: BTreeMap<String, BTreeSet<String>>,
}Expand description
Configuration for check_with: per-rule severity overrides and
disabled rule ids. Applies to all three layers (P/V/L codes).
Fields§
§severity_overrides: BTreeMap<String, Severity>Override the default severity of a rule id.
disabled_rules: BTreeSet<String>Rule ids whose diagnostics are dropped entirely.
extra_frontmatter_values: BTreeMap<String, BTreeSet<String>>Extra allowed front matter values per field (e.g. "type" →
{"checkpoint"}): suppresses the P005 unknown-value diagnostic for
the listed values. The front matter itself still parses to None
(the typed schema is unchanged) — this only silences the diagnostic.
Trait Implementations§
Source§impl Clone for LintConfig
impl Clone for LintConfig
Source§fn clone(&self) -> LintConfig
fn clone(&self) -> LintConfig
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 LintConfig
impl Debug for LintConfig
Source§impl Default for LintConfig
impl Default for LintConfig
Source§fn default() -> LintConfig
fn default() -> LintConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LintConfig
impl<'de> Deserialize<'de> for LintConfig
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
Auto Trait Implementations§
impl Freeze for LintConfig
impl RefUnwindSafe for LintConfig
impl Send for LintConfig
impl Sync for LintConfig
impl Unpin for LintConfig
impl UnsafeUnpin for LintConfig
impl UnwindSafe for LintConfig
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