pub struct InfoStringTypo { /* private fields */ }Implementations§
Source§impl InfoStringTypo
impl InfoStringTypo
Sourcepub fn with_extra(extra: Vec<String>) -> Self
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
impl Default for InfoStringTypo
Source§impl LintRule for InfoStringTypo
impl LintRule for InfoStringTypo
Source§fn description(&self) -> &str
fn description(&self) -> &str
One-line summary for
mdwright list-rules.Source§fn explain(&self) -> &str
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
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>)
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
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
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§
impl Freeze for InfoStringTypo
impl RefUnwindSafe for InfoStringTypo
impl Send for InfoStringTypo
impl Sync for InfoStringTypo
impl Unpin for InfoStringTypo
impl UnsafeUnpin for InfoStringTypo
impl UnwindSafe for InfoStringTypo
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