AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
This report summarizes scanner evidence for ankidroid/Anki-Android, a Kotlin project with 12,135 GitHub stars. SynthScan examined 479,862 lines of code across 3977 source files, recording 78 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 0.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 61 finding(s).
Are imports declared and package/API names verified? 14 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 78 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 78 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …/com/ichi2/anki/lint/rules/DirectToastMakeTextUsage.kt | 20 | * of using the top level method {com.ichi2.anki.common.utils.android.showThemedToast(...)} provided by the Toast file. | COMMENT |
| CRITICAL | …on/android/src/main/java/com/ichi2/ui/FixedTextView.kt | 131 | at com.android.internal.util.Preconditions.checkArgument(Preconditions.java:33) | CODE |
| CRITICAL | …on/android/src/main/java/com/ichi2/ui/FixedTextView.kt | 199 | at com.android.internal.util.Preconditions.checkArgument(Preconditions.java:33) | CODE |
| CRITICAL | …st/kotlin/com/ichi2/anki/gradle/VersionCatalogsTest.kt | 31 | def targetSdk = com.ichi2.anki.gradle.VersionCatalogsKt.libsVersionFor(project, 'targetSdk') | STRING |
| CRITICAL | …/src/androidTest/java/com/ichi2/anki/NoteEditorTest.kt | 59 | at androidx.test.core.app.ActivityScenario.waitForActivityToBecomeAnyOf(ActivityScenario.java:301) | CODE |
| CRITICAL⚡ | AnkiDroid/src/test/resources/anr/real-anr-excerpt.txt | 42 | at java.util.concurrent.locks.LockSupport.park(LockSupport.java:221) | CODE |
| CRITICAL⚡ | AnkiDroid/src/test/resources/anr/real-anr-excerpt.txt | 43 | at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:754) | CODE |
| CRITICAL⚡ | AnkiDroid/src/test/resources/anr/real-anr-excerpt.txt | 44 | at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:10 | CODE |
| CRITICAL⚡ | AnkiDroid/src/test/resources/anr/real-anr-excerpt.txt | 46 | at com.ichi2.anki.analytics.AnrReproActivity.deliberatelyBlockMainThread(AnrReproActivity.kt:58) | CODE |
| CRITICAL⚡ | AnkiDroid/src/test/resources/anr/real-anr-excerpt.txt | 56 | at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932) | CODE |
| CRITICAL | .github/workflows/label.yml | 217 | const opts = github.rest.issues.listForRepo.endpoint.merge({ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | jitpack.yml | 1 | # overview: https://jitpack.io/com/github/ankidroid/Anki-Android/ | COMMENT |
| LOW | tools/pull-compile-push.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tools/google-play.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | tools/list-of-translators.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tools/parallel-package-release.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/release.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/release.sh | 261 | COMMENT | |
| LOW | tools/compare-screenshot-test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/prepare-icons/generate-images.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/discord/format-for-discord.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/discord/format-for-discord.sh | 41 | # Discord syntax is standard markdown: [title](url) | COMMENT |
| LOW | tools/discord/macos-clipboard-to-discord.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/storage/set_scoped_storage.sh | 41 | COMMENT | |
| LOW | tools/quality-check/old_emulator.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/quality-check/start_all_emulators.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/lib/bash-util.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/lib/bash-util.sh | 21 | # Executes the given command, discarding any output to stdout or stderr. | COMMENT |
| LOW | tools/lib/git-util.sh | 41 | # Outputs the abbreviated SHA for the given commit. | COMMENT |
| LOW | tools/lib/git-util.sh | 61 | # stdin: | COMMENT |
| LOW | tools/lib/googlecode_upload.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tools/lib/googlecode_upload.py | 21 | # Note that the upload script requests that you enter your | COMMENT |
| LOW | tools/localization/tsconfig.json | 21 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting Rea | COMMENT |
| LOW | tools/localization/tsconfig.json | 41 | // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from ex | COMMENT |
| LOW | tools/localization/tsconfig.json | 61 | // "mapRoot": "", /* Specify the location where debugger should locate map fi | COMMENT |
| LOW | tools/localization/tsconfig.json | 81 | "strict": true /* Enable all strict type-checking options. */, | COMMENT |
| LOW | tools/localization/src/constants.ts | 61 | "11-arrays", | COMMENT |
| LOW | …ain/java/com/ichi2/anki/compat/PackageManagerCompat.kt | 201 | MATCH_SYSTEM_ONLY_L, | COMMENT |
| LOW | gradle/libs.versions.toml | 21 | # | COMMENT |
| LOW | …iDroid/src/test/java/com/ichi2/anki/TranslationTest.kt | 201 | // TR.studyingAgain() | COMMENT |
| LOW | …iDroid/src/test/java/com/ichi2/anki/TranslationTest.kt | 221 | // TR.browsingSidebarCollapse() | COMMENT |
| LOW | …iDroid/src/test/java/com/ichi2/anki/TranslationTest.kt | 301 | // TR.statisticsReviewsTitle() | COMMENT |
| LOW | …kiDroid/src/test/java/com/ichi2/anki/NoteEditorTest.kt | 201 | noteEditor.saveNote() | COMMENT |
| LOW | AnkiDroid/src/test/java/com/ichi2/anki/ReadTextTest.kt | 61 | // at android.database.sqlite.SQLiteConnection$PreparedStatementCache.entryRemoved(SQLiteConnection.java:1361 | COMMENT |
| LOW | …/ui/internationalization/ComposableTranslationsTest.kt | 101 | // TODO these three backend strings come with extra FSI and PDI character types which | COMMENT |
| LOW | AnkiDroid/src/main/java/com/ichi2/anki/Reviewer.kt | 181 | // A flag that determines if the SchedulingStates in CurrentQueueState are | COMMENT |
| LOW | AnkiDroid/src/main/java/com/ichi2/anki/CardBrowser.kt | 681 | } | COMMENT |
| LOW | …oid/src/main/java/com/ichi2/anki/NoteEditorFragment.kt | 2821 | ) { | COMMENT |
| LOW | …om/ichi2/anki/servicelayer/PreferenceUpgradeService.kt | 601 | COMMENT | |
| LOW | AnkiDroid/src/main/assets/changelog.html | 141 | #header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} | COMMENT |
| LOW | AnkiDroid/src/main/assets/changelog.html | 161 | @media screen and (min-width:768px){#toctitle{font-size:1.375em} | COMMENT |
| LOW | …/src/test/java/com/ichi2/anki/libanki/SchedulerTest.kt | 81 | // // the default order should ensure siblings are not seen together, and | COMMENT |
| LOW | .github/workflows/screenshot_comment.yml | 1 | # Adapted from https://github.com/takahirom/roborazzi/blob/4be7f304fa23f2f00fad67ab612aec2035ac9db2/.github/workflows/Co | COMMENT |
| LOW | .github/workflows/screenshot_store.yml | 1 | # ⚠️ Do not rename the file - screenshot_store.yml is referenced by screenshot_compare.yml | COMMENT |
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql.yml | 61 | # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both | COMMENT |
| LOW | .github/workflows/screenshot_compare.yml | 1 | # Adapted from https://github.com/takahirom/roborazzi/blob/4be7f304fa23f2f00fad67ab612aec2035ac9db2/.github/workflows/Co | COMMENT |
| LOW | .github/workflows/opencollective_notices.yml | 101 | } catch (e) { | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/report_test_failures.py | 57 | except (ValueError, TypeError): | CODE |
| HIGH | .github/report_test_failures.py | 63 | except (ValueError, TypeError): | CODE |
| HIGH | .github/report_test_failures.py | 49 | except (ValueError, TypeError): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/google-play.py | 111 | # Create an httplib2.Http object to handle our HTTP requests and authorize it | COMMENT |
| MEDIUM | tools/release.sh | 38 | # Define the location of the manifest file | COMMENT |
| MEDIUM | tools/release.sh | 194 | # Create a full universal build that disables minify, to help diagnose proguard issues | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | jitpack.yml | 8 | # https://jitpack.io/com/github/ankidroid/Anki-Android/v2.18alpha7/build.log (just use a recent tag, | COMMENT |
| MEDIUM | …/anki/ui/windows/reviewer/whiteboard/WhiteboardView.kt | 245 | // which makes it more robust for path operations. | COMMENT |
| MEDIUM | …rc/main/java/com/ichi2/anki/dialogs/tags/TagsDialog.kt | 412 | // utilize the addTagFilter to append '::' properly by appending a space to prefixTag | COMMENT |
| MEDIUM | …in/java/com/ichi2/anki/services/NotificationService.kt | 341 | // Essentially the same as above, but only check through cards in the provided deck or its s | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/list-of-translators.sh | 2 | # Usage: | COMMENT |
| LOW | tools/compare-screenshot-test.sh | 4 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/test/java/com/ichi2/anki/account/LoginFragmentTest.kt | 47 | activity.findViewById<TextInputEditText>(R.id.username).setText("user@example.com") | CODE |
| LOW | …/src/test/java/com/ichi2/anki/pages/DeckOptionsTest.kt | 149 | manualUrl.buildUpon().encodedAuthority("docs.ankiweb.net@example.org").build(), | CODE |
| LOW | …/src/main/res/layout/fragment_my_account_logged_in.xml | 69 | tools:text="user@example.com" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rc/main/java/com/ichi2/anki/AbstractFlashcardViewer.kt | 8 | // TODO: implement own menu? http://www.codeproject.com/Articles/173121/Android-Menus-My-Way | COMMENT |
| LOW | …2/anki/preferences/profiles/SwitchProfilesViewModel.kt | 67 | // TODO: implement profile deletion via ProfileManager | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/codeql.yml | 64 | # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/report_test_failures.py | 68 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/cancel_merge_queue_runs.yml | 51 | async function findUnfinishedMergeGroupRuns(branch) { | CODE |