crabscore-analysis 0.1.1

Static code analysis for CrabScore - The Rust Efficiency Standard
Documentation
1
2
3
4
5
6
7
8
9
//! Source-code analysis helpers (wrappers).

use anyhow::Result;
use crabscore_core::metrics::SafetyMetrics;

/// Run full static analysis on given path (proxy to safety::analyse_project).
pub fn run(path: &str) -> Result<SafetyMetrics> {
    super::safety::analyse_project(path)
}