neural_complexity/analyzer/
mod.rs1use neural_shared::{ParsedFile, Symbol};
4use serde::{Deserialize, Serialize};
5
6pub struct ComplexityAnalyzer {
8 }
10
11impl ComplexityAnalyzer {
12 pub fn new() -> Self {
13 Self {}
14 }
15
16 pub fn analyze(&self, _file: &ParsedFile) -> ComplexityMetrics {
17 ComplexityMetrics::default()
19 }
20}
21
22impl Default for ComplexityAnalyzer {
23 fn default() -> Self {
24 Self::new()
25 }
26}
27
28#[derive(Debug, Clone, Serialize, Deserialize, Default)]
30pub struct ComplexityMetrics {
31 pub cyclomatic: u32,
32 pub cognitive: u32,
33 pub lines_of_code: u32,
34 pub nesting_depth: u32,
35}