pub struct LintEngine { /* private fields */ }Expand description
Markdown linting engine
Implementations§
Source§impl LintEngine
impl LintEngine
Sourcepub fn with_registry(registry: RuleRegistry) -> Self
pub fn with_registry(registry: RuleRegistry) -> Self
Create a lint engine with an existing rule registry
Sourcepub fn registry(&self) -> &RuleRegistry
pub fn registry(&self) -> &RuleRegistry
Get the underlying rule registry
Sourcepub fn registry_mut(&mut self) -> &mut RuleRegistry
pub fn registry_mut(&mut self) -> &mut RuleRegistry
Get a mutable reference to the rule registry
Sourcepub fn lint_document(&self, document: &Document) -> Result<Vec<Violation>>
pub fn lint_document(&self, document: &Document) -> Result<Vec<Violation>>
Lint a document with all registered rules
Sourcepub fn lint_document_with_config(
&self,
document: &Document,
config: &Config,
) -> Result<Vec<Violation>>
pub fn lint_document_with_config( &self, document: &Document, config: &Config, ) -> Result<Vec<Violation>>
Lint a document with specific configuration
Sourcepub fn lint_content(&self, content: &str, path: &str) -> Result<Vec<Violation>>
pub fn lint_content(&self, content: &str, path: &str) -> Result<Vec<Violation>>
Lint content string directly (convenience method)
Sourcepub fn available_rules(&self) -> Vec<&'static str>
pub fn available_rules(&self) -> Vec<&'static str>
Get all available rule IDs
Sourcepub fn enabled_rules(&self, config: &Config) -> Vec<&dyn Rule>
pub fn enabled_rules(&self, config: &Config) -> Vec<&dyn Rule>
Get enabled rules based on configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LintEngine
impl !RefUnwindSafe for LintEngine
impl Send for LintEngine
impl Sync for LintEngine
impl Unpin for LintEngine
impl !UnwindSafe for LintEngine
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