Skip to main content

tokmd_analysis/
lib.rs

1//! # tokmd-analysis
2//!
3//! **Tier 3 (Orchestration)**
4//!
5//! Analysis logic and optional enrichers for tokmd receipts. Computes derived
6//! metrics and orchestrates optional analysis modules based on presets.
7//!
8//! ## What belongs here
9//! * Analysis orchestration and module coordination
10//! * Derived metric computation
11//! * Preset-based feature inclusion
12//! * Enricher implementations (archetype, topics, git metrics, etc.)
13//!
14//! ## What does NOT belong here
15//! * Output formatting (use tokmd-analysis-format)
16//! * CLI argument parsing
17//! * File modification
18
19mod analysis;
20mod archetype;
21#[cfg(feature = "walk")]
22mod assets;
23#[cfg(feature = "git")]
24mod churn;
25#[cfg(all(feature = "content", feature = "walk"))]
26mod complexity;
27#[cfg(feature = "content")]
28mod content;
29mod derived;
30#[cfg(all(feature = "content", feature = "walk"))]
31mod entropy;
32#[cfg(feature = "git")]
33mod fingerprint;
34mod fun;
35#[cfg(feature = "git")]
36mod git;
37#[cfg(all(feature = "halstead", feature = "content", feature = "walk"))]
38mod halstead;
39#[cfg(all(feature = "content", feature = "walk"))]
40mod license;
41mod topics;
42mod util;
43
44pub use analysis::{
45    AnalysisContext, AnalysisLimits, AnalysisPreset, AnalysisRequest, ImportGranularity, analyze,
46};
47pub use util::normalize_root;