1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Combined report module (`km report` command).
//!
//! Walks all source files once, runs every analyzer (LOC, duplication,
//! indentation, Halstead, cyclomatic, MI), and produces a unified
//! markdown or JSON report with all metrics.
//!
//! The single-walk design avoids reading files multiple times — each file
//! is read and classified once by the analyzer, then all metric computations
//! share the same parsed content. Duplication detection happens at the
//! project level after all files have been normalized.
/// Per-file analysis results are collected in the analyzer submodule.
/// Report builder: walks files and constructs the `ProjectReport`.
/// Data structures for the combined report (sections, entries, summaries).
pub
/// JSON serialization of the combined report.
/// Markdown (table) formatting of the combined report.
use Error;
use crateWalkConfig;
pub use *;
pub use build_report;
/// Entry point: build the combined report and print it as markdown or JSON.