Skip to main content

InfoStringTypo

Struct InfoStringTypo 

Source
pub struct InfoStringTypo { /* private fields */ }

Implementations§

Source§

impl InfoStringTypo

Source

pub fn new() -> Self

Default instance — only the stdlib allowlist applies.

Source

pub fn with_extra(extra: Vec<String>) -> Self

Extend the allowlist with project-specific language tags (promql, kdb, …). The stdlib defaults still apply; these are additions. The CLI wires this from [lint.info-strings] extra in mdwright.toml.

Trait Implementations§

Source§

impl Default for InfoStringTypo

Source§

fn default() -> Self

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

impl LintRule for InfoStringTypo

Source§

fn name(&self) -> &str

Stable kebab-case identifier. Must be unique within any RuleSet.
Source§

fn description(&self) -> &str

One-line summary for mdwright list-rules.
Source§

fn explain(&self) -> &str

Long-form explanation used by mdwright explain <rule> and the per-rule pages under docs/rules/. Returns an empty string by default so existing third-party rules continue to compile; stdlib rules override with a multi-paragraph markdown body (no frontmatter).
Source§

fn is_advisory(&self) -> bool

Advisory rules emit informational diagnostics that do not fail mdwright check --check. Their output still prints.
Source§

fn check(&self, doc: &Document, out: &mut Vec<Diagnostic>)

Run the check against a parsed document. Append diagnostics to out. The dispatcher fills in each diagnostic’s rule and advisory fields from self.name() and self.is_advisory() after the call returns.
Source§

fn is_default(&self) -> bool

Whether this rule is enabled in RuleSet::stdlib_defaults. Most rules are on by default; the few opinionated or repair-focused checks return false.
Source§

fn produces_fix(&self) -> bool

Whether this rule can emit a crate::Fix. Used by mdwright list-rules and the generated rule docs. Defaults to false; stdlib rules that emit fixes override.

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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