simbasjungles / free-my-tv
Code health
This codebase scores 4.3 out of 10 for code health, which we rate needs work. It also scores maintainability 5.3 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: 11 of 55 files are git hotspots, and they average 2.5 — which is where the fixes pay off most.
Do next
3 suggested
3 things worth doing in the week to Oct 20, the last indexed commit.
Worth planning
Break up condition (CCN 91, 61 lines)
app/src/io/freemytv/HomeData.java:336
condition has many paths; easier to read and change once split, which also removes a duplicate; function changed in 4 commits; its file is imported by 5 files, changed 11 times in 90 days.
- gain
- up to +0.7 health on this file(inferred)
- finding
- Complex method
- size
- CCN 91, 61 lines, nests 3 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 39 findings in 16 files
17 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
app/src/io/freemytv/HomeView.java(8 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 39
- files
- 16
- commits
- 17
Large effortBreak up doFrame (CCN 47, 46 lines)
app/src/io/freemytv/HomeView.java:668
doFrame has many paths; easier to read and change once split; its file is imported by 5 files, changed 16 times in 90 days.
- gain
- up to +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 47, 46 lines
- severity
- high
Medium effort, 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
Small effort
- Lines of code
- 11.6K
Recent activity
All commitsCommits
- 1d00b818Xiaomi: also turn off com.xm.webcontent (promo web content)1d ago
- 827e06a9Xiaomi TVs: telemetry and Mi TV+ off, system pieces protected1d ago
- 05d58bbbTitle fallback: skip titles whose original is English1d ago
- 0ad731acRecommendations: the English title when TMDB has none in the TV's language1d ago
- e393722eGerman on LG and Samsung TVs1d ago
- 039c7de4Moving apps: Russian for the new text2d ago
Decisions
- Multilaser Android TV debloat and protect ACR-related system piecesproposed · 1d ago
- Return whether the app was opened on first press and key is consumedproposed · 1d ago
- Handle Vestel TVs where only Netflix button is ownedproposed · 1d ago
- Use TV launcher to keep key processing smallproposed · 1d ago
- Ignore gamepad/joystick button eventsproposed · 1d ago
- Accommodate TCL remotes that send a different YouTube keyproposed · 1d ago
Everything we found
420 open
Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.
- worst item is critical severity. Code health351God class · app/src/io/freemytv/HomeMode.java47 findings · 9.6 deducted
- worst item is low severity. Refactoring27main+0.4 health, S effort · tools/make_zones.py
- worst item is medium severity. Decisions20app/src/io/freemytv/HomeView.java9 awaiting review · 11 hotspots ungoverned
- worst item is medium severity. Ownership22docs/app.js100% single-owner concentration, 3 commits in 90d
Composition
Open the graph- java71%
- python15%
- javascript13%
- shell2%
Explore this codebase
- Docs67 pages across 7 modules
- ChatAsk this codebase a question and get an answer with its sources.
- Files55 files with per-file docs, health and history
- ArchitectureDependency graph, layers, and 9 entry points
- Code healthPer-file scores, 308 open findings, coverage and refactoring targets
- Knowledge graphEntities, communities, and the paths between them
- Change couplingFiles that keep changing together, mined from commit history
- CommitsChange-risk ranked history with agent provenance
- ContributorsBus factor, per-file maintainers, and the human/agent split
- StatsSize class, origin, lifetime churn, rhythm and records
- CostsWhat indexing this snapshot cost, by model and by run.