Skip to content

Commit 14c98e8

Browse files
refactor(docs): code analysis engine
stats: lines: "+63024/-60205 (net +2819)" files: 14 complexity: "Stable complexity"
1 parent 340b8b1 commit 14c98e8

19 files changed

Lines changed: 63047 additions & 60209 deletions

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
## [Unreleased]
22

3+
## [0.5.66] - 2026-03-25
4+
5+
### Docs
6+
- Update project/README.md
7+
- Update project/context.md
8+
9+
### Other
10+
- Update project/analysis.json
11+
- Update project/analysis.toon
12+
- Update project/analysis.yaml
13+
- Update project/calls.mmd
14+
- Update project/calls.png
15+
- Update project/compact_flow.mmd
16+
- Update project/compact_flow.png
17+
- Update project/evolution.toon
18+
- Update project/flow.mmd
19+
- Update project/flow.png
20+
- ... and 2 more files
21+
322
## [0.5.65] - 2026-03-25
423

524
### Docs

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.65
1+
0.5.66

code2llm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
and entity resolution with multilingual support.
99
"""
1010

11-
__version__ = "0.5.65"
11+
__version__ = "0.5.66"
1212
__author__ = "STTS Project"
1313

1414
# Core analysis components (lightweight, always needed)

code2llm/nlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
with multilingual support and fuzzy matching.
55
"""
66

7-
__version__ = "0.5.65"
7+
__version__ = "0.5.66"
88

99
from .pipeline import NLPPipeline
1010
from .normalization import QueryNormalizer

project/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ When you run `code2llm ./ -f all`, the following files are created:
1010

1111
| File | Format | Purpose | Key Insights |
1212
|------|--------|---------|--------------|
13-
| `analysis.toon` | **TOON** | **🔥 Health diagnostics** - Health, LAYERS, COUPLING | 8 critical functions, 0 god modules |
13+
| `analysis.toon` | **TOON** | **🔥 Health diagnostics** - Health, LAYERS, COUPLING | 10 critical functions, 0 god modules |
1414
| `evolution.toon` | **TOON** | **📋 Refactoring queue** - Prioritized improvements | 0 refactoring actions needed |
1515
| `map.toon` | **TOON** | **🗺️ Structural map + project header** - Modules, imports, exports, signatures, stats, alerts, hotspots, trend | Project architecture overview |
1616

@@ -331,7 +331,7 @@ code2llm ./ -f yaml --separate-orphans
331331

332332
**Generated by**: `code2llm ./ -f all --readme`
333333
**Analysis Date**: 2026-03-25
334-
**Total Functions**: 897
334+
**Total Functions**: 908
335335
**Total Classes**: 106
336336
**Modules**: 117
337337

project/analysis.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

project/analysis.toon

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
1-
# code2llm | 113f 20387L | python:105,shell:2,java:1 | 2026-03-25
2-
# CC̄=4.5 | critical:8/897 | dups:0 | cycles:0
1+
# code2llm | 113f 20861L | python:105,shell:2,java:1 | 2026-03-25
2+
# CC̄=4.6 | critical:10/908 | dups:0 | cycles:0
33

4-
HEALTH[8]:
4+
HEALTH[10]:
55
🟡 CC main CC=17 (limit:15)
66
🟡 CC validate_chunked_output CC=15 (limit:15)
77
🟡 CC _resolve_callee CC=18 (limit:15)
8-
🟡 CC _render_header CC=16 (limit:15)
9-
🟡 CC _export_chunked_results CC=17 (limit:15)
8+
🟡 CC export_flow_compact CC=23 (limit:15)
9+
🟡 CC export_flow_detailed CC=25 (limit:15)
10+
🟡 CC export_flow_full CC=23 (limit:15)
11+
🟡 CC _export_mermaid CC=16 (limit:15)
1012
🟡 CC analyze_ruby CC=17 (limit:15)
1113
🟡 CC extract_calls_regex CC=16 (limit:15)
1214
🟡 CC _extract_declarations CC=65 (limit:15)
1315

1416
REFACTOR[1]:
15-
1. split 8 high-CC methods (CC>15)
17+
1. split 10 high-CC methods (CC>15)
1618

17-
PIPELINES[615]:
19+
PIPELINES[624]:
1820
[1] Src [read_readme]: read_readme
1921
PURITY: 100% pure
20-
[2] Src [save_report]: save_report
22+
[2] Src [run_benchmark]: run_benchmark → load_previous
2123
PURITY: 100% pure
22-
[3] Src [main]: main → load_file → is_toon_file
24+
[3] Src [save_report]: save_report
2325
PURITY: 100% pure
24-
[4] Src [run_benchmark]: run_benchmarkload_previous
26+
[4] Src [main]: mainload_file → is_toon_file
2527
PURITY: 100% pure
26-
[5] Src [__init__]: __init__
28+
[5] Src [main]: main → create_html → get_shield_url
2729
PURITY: 100% pure
2830

2931
LAYERS:
30-
code2llm/ CC̄=4.7 ←in:0 →out:5
32+
code2llm/ CC̄=4.8 ←in:0 →out:5
3133
│ !! index_generator 790L 1C 7m CC=5 ←0
34+
│ !! mermaid_exporter 637L 1C 18m CC=25 ←0
3235
│ !! project_yaml_exporter 513L 1C 18m CC=13 ←0
3336
│ !! html_dashboard 504L 1C 14m CC=7 ←0
3437
│ !! metrics 501L 1C 27m CC=12 ←0
@@ -41,9 +44,9 @@ LAYERS:
4144
│ file_analyzer 398L 1C 17m CC=12 ←0
4245
│ flow_exporter 391L 1C 14m CC=10 ←0
4346
│ pipeline 388L 3C 20m CC=10 ←0
44-
│ evolution_exporter 350L 1C 15m CC=10 ←0
47+
│ map_exporter 351L 1C 20m CC=13 ←4
48+
│ evolution_exporter 351L 1C 15m CC=10 ←0
4549
│ analyzer 333L 1C 9m CC=14 ←0
46-
│ !! map_exporter 327L 1C 17m CC=16 ←4
4750
│ entity_resolution 326L 3C 16m CC=13 ←0
4851
│ side_effects 324L 2C 17m CC=14 ←0
4952
│ type_inference 321L 1C 19m CC=9 ←0
@@ -54,11 +57,10 @@ LAYERS:
5457
│ cfg 293L 1C 17m CC=5 ←0
5558
│ data_analysis 286L 1C 18m CC=14 ←0
5659
│ llm_task 284L 0C 15m CC=14 ←0
60+
│ cli_parser 270L 0C 1m CC=1 ←1
61+
│ !! formats 270L 0C 11m CC=16 ←3
5762
│ toon_size_manager 265L 0C 8m CC=10 ←1
58-
│ mermaid_exporter 253L 1C 12m CC=13 ←0
59-
│ cli_parser 251L 0C 1m CC=1 ←1
6063
│ context_exporter 248L 1C 15m CC=10 ←0
61-
│ formats 242L 0C 11m CC=14 ←3
6264
│ dfg 224L 1C 12m CC=7 ←0
6365
│ !! cli_commands 220L 0C 6m CC=15 ←1
6466
│ call_graph 211L 1C 13m CC=9 ←0
@@ -83,11 +85,11 @@ LAYERS:
8385
│ prioritizer 131L 2C 4m CC=9 ←0
8486
│ code2logic 127L 0C 8m CC=6 ←1
8587
│ normalization 122L 2C 13m CC=6 ←0
88+
│ orchestrator 121L 0C 5m CC=11 ←1
8689
│ helpers 120L 0C 8m CC=8 ←3
8790
│ validate_project 118L 0C 3m CC=11 ←1
8891
│ yaml_exporter 108L 1C 7m CC=8 ←0
8992
│ php 106L 0C 1m CC=14 ←1
90-
│ !! orchestrator 103L 0C 3m CC=17 ←1
9193
│ rust 94L 0C 1m CC=9 ←1
9294
│ go_lang 87L 0C 1m CC=10 ←1
9395
│ coupling 77L 1C 5m CC=7 ←0

0 commit comments

Comments
 (0)