mdbook_lint_rulesets/content/
mod.rs1mod content001;
7mod content002;
8mod content003;
9mod content004;
10mod content005;
11mod content006;
12mod content007;
13mod content009;
14mod content010;
15mod content011;
16
17use crate::{RuleProvider, RuleRegistry};
18
19pub struct ContentRuleProvider;
21
22impl RuleProvider for ContentRuleProvider {
23 fn provider_id(&self) -> &'static str {
24 "content"
25 }
26
27 fn description(&self) -> &'static str {
28 "Content quality linting rules (CONTENT001+)"
29 }
30
31 fn version(&self) -> &'static str {
32 "0.12.0"
33 }
34
35 fn register_rules(&self, registry: &mut RuleRegistry) {
36 registry.register(Box::new(content001::CONTENT001::default()));
37 registry.register(Box::new(content002::CONTENT002::default()));
38 registry.register(Box::new(content003::CONTENT003::default()));
39 registry.register(Box::new(content004::CONTENT004::default()));
40 registry.register(Box::new(content005::CONTENT005::default()));
41 registry.register(Box::new(content006::CONTENT006));
42 registry.register(Box::new(content007::CONTENT007::default()));
43 registry.register(Box::new(content009::CONTENT009::default()));
44 registry.register(Box::new(content010::CONTENT010));
45 registry.register(Box::new(content011::CONTENT011));
46 }
47
48 fn rule_ids(&self) -> Vec<&'static str> {
49 vec![
50 "CONTENT001",
51 "CONTENT002",
52 "CONTENT003",
53 "CONTENT004",
54 "CONTENT005",
55 "CONTENT006",
56 "CONTENT007",
57 "CONTENT009",
58 "CONTENT010",
59 "CONTENT011",
60 ]
61 }
62}