yusyus
|
281f6f7916
|
feat: Add Signal Flow Analysis (C3.10) and Test Framework Detection
Comprehensive Godot signal analysis and test framework support:
## Signal Flow Analysis (C3.10)
Enhanced GDScript analyzer to extract:
- Signal declarations with documentation comments
- Signal connections (.connect() calls)
- Signal emissions (.emit() calls)
- Signal flow chains (source → signal → handler)
Created SignalFlowAnalyzer class:
- Analyzes 208 signals, 634 connections, 298 emissions (Cosmic Ideler)
- Detects event patterns:
- EventBus Pattern (centralized event system)
- Observer Pattern (multi-connected signals)
- Event Chains (cascading signal emissions)
- Generates:
- signal_flow.json (full analysis data)
- signal_flow.mmd (Mermaid diagram)
- signal_reference.md (human-readable docs)
Statistics:
- Signal density calculation (signals per file)
- Most connected signals ranking
- Most emitted signals ranking
## Test Framework Detection
Added support for 3 Godot test frameworks:
- **GUT** (Godot Unit Test) - extends GutTest, test_* functions
- **gdUnit4** - @suite and @test annotations
- **WAT** (WizAds Test) - extends WAT.Test
Detection results (Cosmic Ideler):
- 20 GUT test files
- 396 test cases detected
## Integration
Updated codebase_scraper.py:
- Signal flow analysis runs automatically for Godot projects
- Test framework detection integrated into code analysis
- SKILL.md shows signal statistics and test framework info
- New section: 📡 Signal Flow Analysis (C3.10)
## Results (Tested on Cosmic Ideler)
- 443/452 files analyzed (98%)
- 208 signals documented
- 634 signal connections mapped
- 298 signal emissions tracked
- 3 event patterns detected (EventBus, Observer, Event Chains)
- 20 GUT test files found with 396 test cases
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-02 21:44:26 +03:00 |
|