repowisexerj-org/xerj

xerj-org / xerj

rustmain928e004436.8K linessynced 2d ago

Code health

5.5out of 10Fair

This codebase scores 5.5 out of 10 for code health, which we rate fair. It also scores maintainability 5.4 and static performance 9.3 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 173 of 2,399 files are git hotspots, and they average 3.6 — which is where the fixes pay off most.

Do next

4 suggested

6 things worth doing in the week to Oct 16, the last indexed commit, 3 of them now.

Now

  • Critical

    Clean up what this week's commits left: 32 serious findings in 15 files

    17 commits in the last 7 days added or worsened them, and they are still open. Start with engine/crates/xerj-common/src/xccode/mod.rs, which has 1 critical.

    serious findings
    32
    critical
    5
    files
    15

Worth planning

  • Break up search_impl (CCN 804, 4,863 lines)

    engine/crates/xerj-api/src/es_compat.rs:12811

    search_impl nests deeply; easier to read and change once split; its file is imported by 9 files, changed 198 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 804, 4,863 lines, nests 10 deep
    severity
    critical
    worth a check
  • Break up run_index_report_inner (CCN 331, 2,692 lines)

    engine/crates/xerj-autoindex/src/lib.rs:7983

    run_index_report_inner nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 5 files, changed 139 times in 90 days.

    gain
    up to +0.2 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 331, 2,692 lines, nests 6 deep
    severity
    high
    worth a check
  • Break up process_bulk_with_opts (CCN 220, 1,546 lines)

    engine/crates/xerj-engine/src/bulk.rs:1430

    process_bulk_with_opts nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 3 files, changed 15 times in 90 days.

    gain
    up to +0.8 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 220, 1,546 lines, nests 8 deep
    severity
    critical
    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
Lines of code
436.8K

Recent activity

All commits

Everything we found

6,798 open
  • rust57%
  • python19%
  • javascript16%
  • shell7%
  • java<1%
  • Other<1%

Explore this codebase