ferrous_forge/safety/checks/
doc.rs

1//! Documentation checking - placeholder for now, using standards module
2
3use crate::Result;
4use std::path::Path;
5use std::time::Instant;
6
7use super::SafetyCheck;
8use crate::safety::{report::CheckResult, CheckType};
9
10/// Doc check implementation
11pub struct DocCheck;
12
13impl SafetyCheck for DocCheck {
14    async fn run(project_path: &Path) -> Result<CheckResult> {
15        run(project_path).await
16    }
17
18    fn name() -> &'static str {
19        "doc"
20    }
21
22    fn description() -> &'static str {
23        "Builds project documentation"
24    }
25}
26
27/// Run documentation build check (placeholder)
28pub async fn run(_project_path: &Path) -> Result<CheckResult> {
29    let start = Instant::now();
30    let mut result = CheckResult::new(CheckType::Doc);
31    result.set_duration(start.elapsed());
32    result.add_context("Documentation check placeholder - always passes");
33    Ok(result)
34}
35
36/// Check documentation coverage (placeholder)
37pub async fn coverage_check(_project_path: &Path) -> Result<CheckResult> {
38    let start = Instant::now();
39    let mut result = CheckResult::new(CheckType::DocCoverage);
40    result.set_duration(start.elapsed());
41    result.add_context("Documentation coverage check placeholder - always passes");
42    Ok(result)
43}