vectifyai / pageindex
Code health
Hotspots average 3.7, the place fixes pay off most.
Explore this codebase
- Code health map15hotspots across 140 files
- Ownership106sole-owned files: one author, no second reader
- Architecture4modules, 2 entry points
- Decisions19recorded, of which 0 in force and 19 background
- Refactoring55open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4
4 things worth doing in the week to Sep 29, the last indexed commit, 3 of them now.
Now
- High
Start breaking up _tokenize_show_operators (CCN 112, 248 lines): first lift lines 349-363
pageindex/flash/parser_pdfium_charlevel/content_stream.py:349
_tokenize_show_operators nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 3 files, changed 1 time in 90 days.
- gain
- +0.9 health on this file(inferred)
- health recoverable
- +0.9(inferred)
- size
- CCN 112, 248 lines, nests 6 deep
- steps
- 2 (2 mechanical)
Small effort - High
Start breaking up _parse_tounicode_cmap (CCN 89, 194 lines): first lift lines 193-201
pageindex/flash/parser_pdfium_charlevel/cmap_parse.py:193
_parse_tounicode_cmap nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 4 files, changed 1 time in 90 days.
- gain
- +0.8 health on this file(inferred)
- health recoverable
- +0.8(inferred)
- size
- CCN 89, 194 lines, nests 7 deep
- steps
- 1 (1 mechanical)
Small effort - High
Start breaking up detect_font_heading (CCN 158, 153 lines): first lift lines 192-198
pageindex/flash/heading_detection/style_detectors.py:192
detect_font_heading has many paths; easier to read and change once split; its file is imported by 2 files, changed 1 time in 90 days.
- gain
- +0.9 health on this file(inferred)
- health recoverable
- +0.9(inferred)
- size
- CCN 158, 153 lines
- steps
- 2 (2 mechanical)
Small effort
Worth planning
Tidy the code shape this week's commits left: 5 findings in 4 files
1 commit in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
pageindex/flash/api.py(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 5
- files
- 4
- commits
- 1
Medium effort
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 health770 open findingsCriticalDeep nesting · pageindex/local_chat.py54 findings · 8.0 deducted
- Refactoring55 open opportunitiesMediumdetect_title+1.5 health, S effort · pageindex/flash/title/detect.py
- Decisions0 drifting from the codeMediumpageindex/client.pyHigh-churn file with no governing decision
- Ownership106 sole-owned filesMediumpageindex/client.pyOne author, no second reader