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
// Copyright (c) 2026 Kirky.XðŸŒ
// SPDX-License-Identifier: MIT
//! Code analysis subsystem.
//!
//! Provides graph-based analysis capabilities that aggregate over the existing
//! LadybugDB graph via Cypher queries:
//! - [`dead_code::DeadCodeDetector`] — identifies zero-indegree CALLS functions
//! - [`architecture::ArchitectureAnalyzer`] — produces a project overview
//!
//! All analyzers take a `&dyn Storage` (the trait-kit capability) rather than
//! a `&StorageConnection` directly, matching the codebase convention used by
//! every other CLI command (see `impact_cmd`, `query_cmd`). The specmark
//! design wrote `&'a StorageConnection`, but the Kit only exposes
//! `Arc<dyn Storage>`; using `&dyn Storage` keeps the analyzer consistent
//! with the Kit capability pattern (惯例优先于新颖) and works in
//! both production (via `kit.require::<StorageModule>()`) and tests.
// Re-export EdgeType for analysis modules needing multi-edge-type queries.
pub use crateEdgeType;