Skip to content

Commit bb07d16

Browse files
refactor(docs): code analysis engine
stats: lines: "+16071/-62600 (net -46529)" files: 18 complexity: "Stable complexity"
1 parent 23554bf commit bb07d16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+26887
-26730
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [3.0.12] - 2026-03-09
11+
12+
### Docs
13+
- Update code2docs/project/README.md
14+
- Update code2docs/project/context.md
15+
- Update docs/README.md
16+
- Update docs/api-changelog.md
17+
- Update docs/architecture.md
18+
- Update docs/configuration.md
19+
- Update project/README.md
20+
- Update project/context.md
21+
22+
### Test
23+
- Update tests/project/README.md
24+
- Update tests/project/analysis.toon
25+
- Update tests/project/dashboard.html
26+
- Update tests/project/evolution.toon
27+
- Update tests/project/flow.toon
28+
- Update tests/project/project.yaml
29+
30+
### Other
31+
- Update code2docs/project/analysis.json
32+
- Update code2docs/project/analysis.toon
33+
- Update code2docs/project/analysis.yaml
34+
- Update code2docs/project/calls.mmd
35+
- Update code2docs/project/dashboard.html
36+
- Update code2docs/project/evolution.toon
37+
- Update code2docs/project/flow.mmd
38+
- Update code2docs/project/flow.toon
39+
- Update code2docs/project/map.toon
40+
- Update code2docs/project/project.yaml
41+
- ... and 13 more files
42+
1043
## [3.0.11] - 2026-03-09
1144

1245
### Other

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# code2docs
22

3-
![version](https://img.shields.io/badge/version-3.0.11-blue) ![python](https://img.shields.io/badge/python-%3E%3D3.9-blue) ![docs](https://img.shields.io/badge/docs-auto--generated-blueviolet)
3+
![version](https://img.shields.io/badge/version-3.0.12-blue) ![python](https://img.shields.io/badge/python-%3E%3D3.9-blue) ![docs](https://img.shields.io/badge/docs-auto--generated-blueviolet)
44

55
> Auto-generate and sync project documentation from source code analysis.
66
@@ -140,7 +140,7 @@ code2docs can update only specific sections of an existing README using markers:
140140
```markdown
141141
<!-- code2docs:start --># code2docs
142142

143-
![version](https://img.shields.io/badge/version-3.0.11-blue) ![python](https://img.shields.io/badge/python-%3E%3D3.9-blue) ![coverage](https://img.shields.io/badge/coverage-unknown-lightgrey) ![functions](https://img.shields.io/badge/functions-276-green)
143+
![version](https://img.shields.io/badge/version-3.0.12-blue) ![python](https://img.shields.io/badge/python-%3E%3D3.9-blue) ![coverage](https://img.shields.io/badge/coverage-unknown-lightgrey) ![functions](https://img.shields.io/badge/functions-276-green)
144144
> **276** functions | **57** classes | **51** files | CC̄ = 3.8
145145

146146
> Auto-generated project documentation from source code analysis.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.11
1+
3.0.12

code2docs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
README.md, API references, module docs, examples, and architecture diagrams.
66
"""
77

8-
__version__ = "3.0.11"
8+
__version__ = "3.0.12"
99
__author__ = "Tom Sapletta"
1010

1111
from .config import Code2DocsConfig

code2docs/project/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ code2llm ./ -f yaml --separate-orphans
337337
---
338338

339339
**Generated by**: `code2llm ./ -f all --readme`
340-
**Analysis Date**: 2026-03-08
340+
**Analysis Date**: 2026-03-09
341341
**Total Functions**: 252
342342
**Total Classes**: 56
343343
**Modules**: 40

code2docs/project/analysis.json

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

code2docs/project/analysis.toon

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# code2llm | 38f 5373L | py:38 | 2026-03-08
1+
# code2llm | 38f 5373L | py:38 | 2026-03-09
22
# CC̄=4.2 | critical:25/252 | dups:0 | cycles:1
33

44
HEALTH[10]:
@@ -100,9 +100,9 @@ FUNCTIONS (CC≥10, 25 of 252):
100100
11.0 ArchitectureGenerator._generate_class_diagram 12n 2exit loops+cond+ret
101101
10.0 ConfigDocsGenerator._render_section 14n 2exit loops+cond+ret
102102
10.0 ApiReferenceGenerator._has_content 6n 3exit cond+ret
103-
10.0 _run_check 11n 1exit loops+cond
104103
10.0 ApiChangelogGenerator._diff_functions 9n 1exit loops+cond
105104
10.0 ApiChangelogGenerator._diff_classes 15n 1exit loops+cond
105+
10.0 _run_check 11n 1exit loops+cond
106106
10.0 Code2DocsConfig.from_yaml 20n 3exit cond+ret
107107

108108
summary:
@@ -146,8 +146,8 @@ CLASSES:
146146
Code2LlmGenerator █████ 4m CC̄=6.2 max=17 !!
147147
Code2DocsConfig █████ 4m CC̄=4.0 max=10
148148
BaseGenerator ████ 3m CC̄=1.0 max=1
149-
EndpointDetector ████ 3m CC̄=4.0 max=5
150149
ProjectScanner ████ 3m CC̄=1.3 max=2
150+
EndpointDetector ████ 3m CC̄=4.0 max=5
151151
Updater ██ 2m CC̄=3.0 max=4
152152
ReadmeGeneratorAdapter ██ 2m CC̄=2.5 max=4
153153
ApiReferenceAdapter ██ 2m CC̄=2.0 max=2
@@ -174,10 +174,10 @@ CLASSES:
174174
ExamplesConfig 0m CC̄=0.0 max=0.0
175175
SyncConfig 0m CC̄=0.0 max=0.0
176176
Code2LlmConfig 0m CC̄=0.0 max=0.0
177-
Endpoint 0m CC̄=0.0 max=0.0
177+
DocstringInfo 0m CC̄=0.0 max=0.0
178178
DependencyInfo 0m CC̄=0.0 max=0.0
179179
ProjectDependencies 0m CC̄=0.0 max=0.0
180-
DocstringInfo 0m CC̄=0.0 max=0.0
180+
Endpoint 0m CC̄=0.0 max=0.0
181181

182182
D:
183183
generators/readme_gen.py:
@@ -273,6 +273,15 @@ Thi...
273273
e: ContributingGenerator
274274
ContributingGenerator # Generate CONTRIBUTING.md by detecting dev tools from pyproje...
275275
__init__(2) CC=1.0
276+
analyzers/docstring_extractor.py:
277+
e: DocstringInfo,DocstringExtractor
278+
DocstringInfo # Parsed docstring with sections....
279+
DocstringExtractor # Extract and parse docstrings from AnalysisResult....
280+
extract_all(1) CC=5.0
281+
→ parse(1) CC=2.0
282+
→ _extract_summary(0) CC=2.0
283+
→ _parse_sections(2) CC=8.0
284+
→ _classify_section(0) CC=5.0
276285
analyzers/dependency_scanner.py:
277286
e: DependencyInfo,ProjectDependencies,DependencyScanner
278287
DependencyInfo # Information about a project dependency....
@@ -285,15 +294,6 @@ Thi...
285294
→ _parse_dep_string(0) CC=2.0
286295
→ _parse_setup_py(1) CC=4.0
287296
→ _parse_requirements_txt(1) CC=5.0
288-
analyzers/docstring_extractor.py:
289-
e: DocstringInfo,DocstringExtractor
290-
DocstringInfo # Parsed docstring with sections....
291-
DocstringExtractor # Extract and parse docstrings from AnalysisResult....
292-
extract_all(1) CC=5.0
293-
→ parse(1) CC=2.0
294-
→ _extract_summary(0) CC=2.0
295-
→ _parse_sections(2) CC=8.0
296-
→ _classify_section(0) CC=5.0
297297
llm_helper.py:
298298
e: LLMHelper,_get_litellm
299299
LLMHelper # Thin wrapper around litellm for documentation generation.

0 commit comments

Comments
 (0)