ai4finance-foundation / finrobot
Code health
Explore this codebase
- Code health map928files scored
- Ownership822sole-owned files: one author, no second reader
- Architecture4modules, 8 entry points
- Decisions6recorded, of which 0 in force and 6 background
- Refactoring109open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
4 things worth doing in the week to Oct 24, the last indexed commit, 1 of them now.
Worth planning
Start breaking up fetch (CCN 39, 212 lines): first lift lines 536-556
finrobot_desktop/finrobot/engine/data/providers/fmp_provider.py:536
fetch has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 9 files, changed 2 times in 90 days.
- gain
- +0.9 health on this file(inferred)
- health recoverable
- +0.9(inferred)
- size
- CCN 39, 212 lines, nests 4 deep
- steps
- 5 (2 mechanical)
Medium effort, worth a checkStart breaking up seed_dcf_inputs (CCN 69, 403 lines): first lift lines 402-449
finrobot_desktop/finrobot/engine/compute/operators/dcf_seed.py:402
seed_dcf_inputs has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 17 files, changed 1 time in 90 days.
- gain
- +1.4 health on this file(inferred)
- health recoverable
- +1.4(inferred)
- size
- CCN 69, 403 lines, nests 3 deep
- steps
- 2 (1 mechanical)
Large effort, worth a checkBreak up AIZone (CCN 52, 276 lines)
finrobot_desktop/desktop/src/views/workspace/AIZone.tsx:124
AIZone has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 5 files, changed 1 time in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 52, 276 lines
- severity
- high
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health1,266 open findingsCriticalGod class · finrobot_equity/core/src/modules/professional_pdf_report.py47 findings · 9.0 deducted
- Refactoring109 open opportunitiesMediumscreen_peers+2.0 health, M effort · finrobot_desktop/finrobot/engine/compute/operators/peer_screen.py
- Ownership822 sole-owned filesMediumfinrobot_desktop/dev.shOne author, no second reader
- Dead code18Lowcreate_enhanced_chart_generatorUnreachable function (3 lines)