repowiseankidroid/anki-android

ankidroid / anki-android

kotlinmain6f75d30226.0K linessynced on Nov 23, 2026

Code health

8.8out of 10Excellent

Hotspots average 8.1, the place fixes pay off most.

Explore this codebase

Do next · 6 · 1 setup step

7 things worth doing in the week to Nov 23, the last indexed commit, 1 of them now · 1 setup step.

Worth planning

  • Break up setupEditor (CCN 46, 246 lines)

    AnkiDroid/src/main/java/com/ichi2/anki/NoteEditorFragment.kt:858

    setupEditor has many paths; easier to read and change once split; its file is imported by 24 files, changed 55 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 46, 246 lines, nests 4 deep
    severity
    high
    worth a check
  • Tidy the code shape this week's commits left: 1 finding in AnkiDroid/src/main/java/com/ichi2/compose/ui/dialogs/TextInputValidation.kt

    1 commit in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with AnkiDroid/src/main/java/com/ichi2/compose/ui/dialogs/TextInputValidation.kt (1 finding): tidying it while the change is fresh costs less than after the next one.

    code-shape findings
    1
    files
    1
    commits
    1
  • Review why fixes keep landing in AnkiDroid/src/main/java/com/ichi2/anki/CardBrowser.kt: tests reach it

    Changed 27 times in 90 days, and 10 of those commits were bug fixes.

    commits in 90 days
    27
    bug-fix commits
    10
    line coverage
    Unknown, no report
    tests that reach it
    3 test files, call graph(inferred)
    worth a check
  • Review why fixes keep landing in AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt: tests reach it

    Changed 83 times in 90 days, and 35 of those commits were bug fixes.

    commits in 90 days
    83
    bug-fix commits
    35
    line coverage
    Unknown, no report
    tests that reach it
    12 test files, call graph(inferred)
    worth a check
  • Review why fixes keep landing in AnkiDroid/src/main/java/com/ichi2/anki/browser/CardBrowserFragment.kt: tests reach it

    Changed 50 times in 90 days, and 22 of those commits were bug fixes.

    commits in 90 days
    50
    bug-fix commits
    22
    line coverage
    Unknown, no report
    tests that reach it
    5 test files, call graph(inferred)
    worth a check

Everything we found

6 areas