mdbook_lint_core/rules/standard/
md017.rs

1//! MD017: Removed rule
2//!
3//! This rule was removed from markdownlint and its functionality covered by MD018-MD021.
4//! It exists as a placeholder to maintain complete rule numbering.
5
6use crate::error::Result;
7use crate::rule::{Rule, RuleCategory, RuleMetadata};
8use crate::{Document, violation::Violation};
9use comrak::nodes::AstNode;
10
11/// Placeholder for removed rule MD017
12pub struct MD017;
13
14impl Rule for MD017 {
15    fn id(&self) -> &'static str {
16        "MD017"
17    }
18
19    fn name(&self) -> &'static str {
20        "removed"
21    }
22
23    fn description(&self) -> &'static str {
24        "Removed rule (functionality covered by MD018-MD021)"
25    }
26
27    fn metadata(&self) -> RuleMetadata {
28        RuleMetadata::deprecated(
29            RuleCategory::Structure,
30            "Functionality covered by MD018, MD019, MD020, and MD021",
31            Some("MD018"),
32        )
33        .introduced_in("mdbook-lint v0.1.0")
34    }
35
36    fn check_with_ast<'a>(
37        &self,
38        _document: &Document,
39        _ast: Option<&'a AstNode<'a>>,
40    ) -> Result<Vec<Violation>> {
41        // Removed rules never produce violations
42        Ok(vec![])
43    }
44}