Read 2026-11-07
hapelee/legado-with-md3: technical due diligence, read from its repository
What Borehole read in hapelee/legado-with-md3's code and history at d2c1024: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | not assessable |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongCommit messages are templated rather than written
adequate59% of commit subjects are exact repeats of another subject, and subject length varies by only 21.7 characters. A log written by someone explaining their reasoning to a future reader does not look like this. The log is therefore weak evidence of intent, whatever the code is like.
| 3427× '优化' |
| 42× '更新界面' |
| 24× 'Update updateLog.md' |
app/src/main/java/io/legado/app/feature/reader/ReaderCanvasSurface.kt is 3,756 lines, 40× this codebase's median file
adequateThe median source file here is 93 lines. 51 files exceed 1,000 lines, the largest being 3,756. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
app/src/main/java/io/legado/app/feature/reader/ReaderCanvasSurface.kt:1 — 3,756 lines (40× median) |
app/src/main/java/io/legado/app/ui/book/read/ReadBookController.kt:1 — 3,328 lines (35× median) |
app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt:1 — 2,749 lines (29× median) |
app/src/main/java/io/legado/app/ui/book/info/BookInfoScreen.kt:1 — 2,432 lines (26× median) |
app/src/main/java/io/legado/app/ui/book/manga/MangaReaderScreen.kt:1 — 2,239 lines (24× median) |
Engineering Process & SDLC Maturity
adequate58% of commit subjects say nothing about the change
adequate4,398 of 7,620 subjects are either under twelve characters or one of the standard placeholders — wip, fix, update. The history is therefore not usable for reconstructing why a decision was taken, which is the main thing an inheriting engineer needs it for. It says nothing about code quality and a great deal about how much context transfers with the asset.
| 4,398/7,620 low-content subjects (57.7%) |
| '优化' |
| '优化' |
| '优化' |
| '修复书源调试显示错误' |
Almost no process scaffolding exists in the repository
adequateOf five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.
| 1 of 5 markers present across 3,122 tracked files |
Product & Engineering Maturity
strong7 files still carry code deprecated more than two years ago
adequate7 files were marked deprecated over two years ago and still are, the oldest since Jan 2022. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
app/src/main/java/io/legado/app/lib/icu4j/CharsetDetector.java — deprecated since Jan 2022 |
app/src/main/java/io/legado/app/service/TTSReadAloudService.kt — deprecated since Jul 2022 |
app/src/main/java/io/legado/app/help/TTS.kt — deprecated since Sep 2022 |
app/src/main/java/io/legado/app/help/JsEncodeUtils.kt — deprecated since Oct 2022 |
app/src/main/java/io/legado/app/help/JsExtensions.kt — deprecated since Mar 2023 |
Security & Reliability Posture
adequate2 credential-shaped strings committed to the tree
adequateMatches for Google API key appear in tracked files outside test and fixture paths. They stay in the history even after they leave the tree, so what matters is whether each was rotated. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when. Only Google API keys matched. Those are often public by design, in a browser app's Firebase or Maps configuration; the question is whether each is restricted to the app's domains and APIs.
| 2 cited: Google API key pattern matched |
1 credential-shaped string exists in the history
adequateMatches for Google API key were committed at some point across 7,593 commits examined. Some are still in the working tree. What matters is whether each was rotated after it was committed. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when. Only Google API keys matched. Those are often public by design, in a browser app's Firebase or Maps configuration; the question is whether each is restricted to the app's domains and APIs.
| Google API key pattern added here |
The build runs third-party code it does not pin
adequate6 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.
.github/workflows/auto-release.yml:175 — action pinned by tag |
.github/workflows/auto-release.yml:375 — action pinned by tag |
9 places insert HTML from a variable without sanitising it
adequate9 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.
app/src/main/assets/web/assets/js/dist.js:5 — HTML from a variable |
app/src/main/assets/web/assets/js/dist.js:6 — HTML from a variable |
app/src/main/assets/web/help/js/highlight.min.js:271 — HTML from a variable |
The app allows plain HTTP to any server
adequateThe app's manifest allows unencrypted HTTP app-wide (NSAllowsArbitraryLoads, or cleartext traffic permitted), rather than for named domains. Anything sent over plain HTTP can be read on the network, and enterprise security reviews ask about it. Some apps need it by nature (a podcast or feed reader fetches whatever URL a feed gives), so ask which case this is.
app/src/main/res/xml/network_security_config.xml:3 — cleartext allowed app-wide |
Observability & Operations
not assessableNot rated: only 5 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on hapelee/legado-with-md3: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.