xerj-org / xerj
Code health
Hotspots average 2.4, the place fixes pay off most.
Explore this codebase
- Code health map117hotspots across 2,996 files
- Ownership375sole-owned files: one author, no second reader
- Architecture16modules, 39 entry points
- Decisions83recorded, of which 0 accepted and 83 awaiting review
- Refactoring260open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 9
10 things worth doing in the week to Nov 5, the last indexed commit, 1 of them now.
Worth planning
Break up run_index_report_inner (CCN 444, 3,404 lines)
engine/crates/xerj-autoindex/src/lib.rs:11963
run_index_report_inner has many paths; easier to read and change once split; its file is imported by 6 files, changed 80 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 444, 3,404 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkBreak up parse (CCN 226, 1,122 lines)
engine/crates/xerj-autoindex/src/cli.rs:1224
parse has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 15 files, changed 34 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 226, 1,122 lines, nests 4 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 33 findings in 22 files
17 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
engine/crates/xerj-autoindex/src/lib.rs(4 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 33
- files
- 22
- commits
- 17
Large effortSimplify
code_search_own_corpus_omits_the_unidentified_copy_bannerinengine/crates/xerj-mcp/src/lib.rs: tests reach it, and fixes keep landingChanged 48 times in 90 days, and 27 of those commits were bug fixes.
- commits in 90 days
- 48
- bug-fix commits
- 27
- line coverage
- Unknown, no report
- tests that reach it
- 118 test files, import graph(inferred)
Large effort, worth a checkNo test reaches
engine/crates/xerj-server/src/main.rsin the code graph: confirm it is tested before its next changeChanged 39 times in 90 days, and 24 of those commits were bug fixes.
- commits in 90 days
- 39
- bug-fix commits
- 24
- line coverage
- Unknown, no report
- tests that reach it
- None in the code graph(inferred)
Large effort, worth a check
Everything we found
6 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health7,686 open findingsCriticalChange entropy · engine/crates/xerj-engine/src/aggs.rs260 findings · 17.2 deducted
- Refactoring260 open opportunitiesMediummain+1.8 health, M effort · benchmarks/grep-vs-retrieval-lucene/analyze.py
- Doc drift23Mediumdocs/research/llms-txt-2026-09/per-project/supabase.mdLink points at #security-risks, which docs/research/llms-txt-2026-09/per-project/supabase.md no longer declares.
- Decisions83 to reviewMediumengine/crates/xerj-engine/src/index.rs83 awaiting review, 0 drifting from the code
- Ownership375 sole-owned filesMediumengine/crates/xerj-engine/src/index.rsOne author, no second reader
- Dead code1LowisDataDrivenUnreachable function (3 lines)