mdbook_lint_core/rules/standard/
md015.rs1use crate::error::Result;
7use crate::rule::{Rule, RuleCategory, RuleMetadata};
8use crate::{Document, violation::Violation};
9use comrak::nodes::AstNode;
10
11pub struct MD015;
13
14impl Rule for MD015 {
15 fn id(&self) -> &'static str {
16 "MD015"
17 }
18
19 fn name(&self) -> &'static str {
20 "removed"
21 }
22
23 fn description(&self) -> &'static str {
24 "Removed rule (functionality merged into MD013)"
25 }
26
27 fn metadata(&self) -> RuleMetadata {
28 RuleMetadata::deprecated(
29 RuleCategory::Formatting,
30 "Functionality merged into MD013 (line-length)",
31 Some("MD013"),
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 Ok(vec![])
43 }
44}