Executive summary
lizongying/my-tv-0 falls short of our standard for production because the project has no automated tests and we found no automated security scanning of the code, its secrets or its dependencies. It scores 50 out of 100 and is rated Weak, and nine of its ten critical findings are security problems in the build pipeline.
Production Readiness, at 36, is the weakest lens and counts most in the score. The best first step is recording design decisions, worth about 7 points. Adding automated security scanning would lift Production Readiness itself, also worth about 7. Raising Production Readiness to 70 would lift the score to about 60.
Five pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Four secrets can leak from the build pipeline, and the project has no automated tests, so a change can break it without warning. Pinning each tool to an exact version, limiting each secret to its own step and adding automated tests would close these risks.
The product code is 5,979 lines, about €5,600 to rebuild.
If Production Readiness rose from 36 to 70, the lowest score rated Strong, the score would rise from 50 to about 60.
New since the last survey: 18 findings
- Code Duplication · Edited copy of a member (18 corresponding lines) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt
- Code Duplication · Edited copy of a member (21 corresponding lines) app/src/main/java/com/lizongying/mytv0/ChannelFragment.kt
- Code Duplication · Edited copies of one member (3 members, 28+ corresponding lines) app/src/main/java/com/lizongying/mytv0/MainViewModel.kt
- Code Duplication · Edited copies of one member (3 members, 25+ corresponding lines) app/src/main/java/com/lizongying/mytv0/SimpleServer.kt
- Code Duplication · Edited copy of a member (29 corresponding lines) app/src/main/java/com/lizongying/mytv0/models/TVGroupModel.kt
- Code Duplication · Edited copy of a member (19 corresponding lines) app/src/main/java/com/lizongying/mytv0/MainActivity.kt
- Code Duplication · Edited copy of a member (17 corresponding lines) app/src/main/java/com/lizongying/mytv0/ImageHelper.kt
- Code Duplication · Edited copy of a member (19 corresponding lines) app/src/main/java/com/lizongying/mytv0/SimpleServer.kt
- Code Duplication · Edited copy of a member (9 corresponding lines) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt
- Code Duplication · Edited copy of a member (13 corresponding lines) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt
- Code Duplication · Edited copy of a member (13 corresponding lines) app/src/main/java/com/lizongying/mytv0/MainActivity.kt
- Code Duplication · Edited copy of a member (9 corresponding lines) app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt
- Code Duplication · Duplicated block (30–33 lines × 4) app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt
- Code Duplication · Duplicated block (17 lines × 2) app/src/main/java/com/lizongying/mytv0/MainActivity.kt
- Code Duplication · Duplicated block (23 lines × 2) app/src/main/java/com/lizongying/mytv0/InfoFragment.kt
- Code Duplication · Duplicated block (8 lines × 2) app/src/main/java/com/lizongying/mytv0/SimpleServer.kt
- Code Duplication · Duplicated block (7 lines × 2) app/src/main/java/com/lizongying/mytv0/MainViewModel.kt
- Code Duplication · Duplicated block (10 lines × 2) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt
Fixed since the last survey: 7 findings
- Code Duplication · Duplicated block (30–33 lines × 4) app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt
- Code Duplication · Duplicated block (21 lines × 2) app/src/main/java/com/lizongying/mytv0/InfoFragment.kt
- Code Duplication · Duplicated block (17 lines × 2) app/src/main/java/com/lizongying/mytv0/MainActivity.kt
- Code Duplication · Duplicated block (8 lines × 2) app/src/main/java/com/lizongying/mytv0/SimpleServer.kt
- Code Duplication · Duplicated block (7 lines × 2) app/src/main/java/com/lizongying/mytv0/MainViewModel.kt
- Code Duplication · Duplicated block (5 lines × 2) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt
- Churn × Complexity Hotspots · Hotspot: app/src/main/java/com/lizongying/mytv0/MainActivity.kt app/src/main/java/com/lizongying/mytv0/MainActivity.kt
Rebuild cost: about €5,600 · Estimate
| Cost to rebuild | €1,900 to €9,300, for 31 to 98 hours of work, under 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 50. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Small: 5,979 lines of product code |
| What it is not | Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one. |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 MainViewModel | 2 app.src.main.res.raw | 3 com.lizongying.mytv0.ChannelFragment | 4 com.lizongying.mytv0.ConfirmationFragment | 5 com.lizongying.mytv0.ErrorFragment | 6 com.lizongying.mytv0.ImageHelper | 7 com.lizongying.mytv0.InfoFragment | 8 com.lizongying.mytv0.LoadingFragment | 9 com.lizongying.mytv0.MainActivity | 10 com.lizongying.mytv0.MenuFragment | 11 com.lizongying.mytv0.ModalFragment | 12 com.lizongying.mytv0.MyTVExceptionHandler | 13 com.lizongying.mytv0.PlayerFragment | 14 com.lizongying.mytv0.ProgramFragment | 15 com.lizongying.mytv0.SettingFragment | 16 com.lizongying.mytv0.SimpleServer | 17 com.lizongying.mytv0.SourcesAdapter | 18 com.lizongying.mytv0.SourcesFragment | 19 com.lizongying.mytv0.TimeFragment | 20 com.lizongying.mytv0.UpdateManager | 21 com.lizongying.mytv0.data | 22 com.lizongying.mytv0.models.EPGXmlParser | 23 com.lizongying.mytv0.models.Sources | 24 com.lizongying.mytv0.models.TVGroupModel | 25 com.lizongying.mytv0.models.TVListModel | 26 com.lizongying.mytv0.models.TVModel | 27 com.lizongying.mytv0.requests | 28 com.lizongying.mytv0.requests.Tls12SocketFactory | 29 com.lizongying.mytv0.ProgramAdapter | 30 com.lizongying.mytv0.data.SourceType | 31 com.lizongying.mytv0.models | 32 com.lizongying.mytv0.GroupAdapter | 33 com.lizongying.mytv0.ListAdapter | 34 com.lizongying.mytv0 | 35 (global) | 36 com.lizongying.mytv0.ISP | 37 com.lizongying.mytv0.MyTVApplication |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 MainViewModel | |||||||||||||||||||||||||||||||||||||
| 2 app.src.main.res.raw | |||||||||||||||||||||||||||||||||||||
| 3 com.lizongying.mytv0.ChannelFragment | |||||||||||||||||||||||||||||||||||||
| 4 com.lizongying.mytv0.ConfirmationFragment | |||||||||||||||||||||||||||||||||||||
| 5 com.lizongying.mytv0.ErrorFragment | |||||||||||||||||||||||||||||||||||||
| 6 com.lizongying.mytv0.ImageHelper | |||||||||||||||||||||||||||||||||||||
| 7 com.lizongying.mytv0.InfoFragment | |||||||||||||||||||||||||||||||||||||
| 8 com.lizongying.mytv0.LoadingFragment | |||||||||||||||||||||||||||||||||||||
| 9 com.lizongying.mytv0.MainActivity | |||||||||||||||||||||||||||||||||||||
| 10 com.lizongying.mytv0.MenuFragment | |||||||||||||||||||||||||||||||||||||
| 11 com.lizongying.mytv0.ModalFragment | |||||||||||||||||||||||||||||||||||||
| 12 com.lizongying.mytv0.MyTVExceptionHandler | |||||||||||||||||||||||||||||||||||||
| 13 com.lizongying.mytv0.PlayerFragment | |||||||||||||||||||||||||||||||||||||
| 14 com.lizongying.mytv0.ProgramFragment | |||||||||||||||||||||||||||||||||||||
| 15 com.lizongying.mytv0.SettingFragment | |||||||||||||||||||||||||||||||||||||
| 16 com.lizongying.mytv0.SimpleServer | |||||||||||||||||||||||||||||||||||||
| 17 com.lizongying.mytv0.SourcesAdapter | |||||||||||||||||||||||||||||||||||||
| 18 com.lizongying.mytv0.SourcesFragment | |||||||||||||||||||||||||||||||||||||
| 19 com.lizongying.mytv0.TimeFragment | |||||||||||||||||||||||||||||||||||||
| 20 com.lizongying.mytv0.UpdateManager | |||||||||||||||||||||||||||||||||||||
| 21 com.lizongying.mytv0.data | |||||||||||||||||||||||||||||||||||||
| 22 com.lizongying.mytv0.models.EPGXmlParser | |||||||||||||||||||||||||||||||||||||
| 23 com.lizongying.mytv0.models.Sources | |||||||||||||||||||||||||||||||||||||
| 24 com.lizongying.mytv0.models.TVGroupModel | |||||||||||||||||||||||||||||||||||||
| 25 com.lizongying.mytv0.models.TVListModel | |||||||||||||||||||||||||||||||||||||
| 26 com.lizongying.mytv0.models.TVModel | |||||||||||||||||||||||||||||||||||||
| 27 com.lizongying.mytv0.requests | |||||||||||||||||||||||||||||||||||||
| 28 com.lizongying.mytv0.requests.Tls12SocketFactory | |||||||||||||||||||||||||||||||||||||
| 29 com.lizongying.mytv0.ProgramAdapter | 2 | ||||||||||||||||||||||||||||||||||||
| 30 com.lizongying.mytv0.data.SourceType | 7 | ||||||||||||||||||||||||||||||||||||
| 31 com.lizongying.mytv0.models | 5 | ||||||||||||||||||||||||||||||||||||
| 32 com.lizongying.mytv0.GroupAdapter | 1 | ||||||||||||||||||||||||||||||||||||
| 33 com.lizongying.mytv0.ListAdapter | 2 | 3 | |||||||||||||||||||||||||||||||||||
| 34 com.lizongying.mytv0 | 2 | 3 | 1 | 3 | 3 | 8 | 3 | 3 | 8 | ||||||||||||||||||||||||||||
| 35 (global) | 3 | 1 | |||||||||||||||||||||||||||||||||||
| 36 com.lizongying.mytv0.ISP | 5 | ||||||||||||||||||||||||||||||||||||
| 37 com.lizongying.mytv0.MyTVApplication | 1 |
29→21 com.lizongying.mytv0.ProgramAdapter uses com.lizongying.mytv0.data✕
- Connections
- 2 pairs of types, where a type in com.lizongying.mytv0.ProgramAdapter uses a type in com.lizongying.mytv0.data.
- The types involved
com.lizongying.mytv0.ProgramAdapter.ItemListener→com.lizongying.mytv0.data.EPGcom.lizongying.mytv0.ProgramAdapter.ViewHolder→com.lizongying.mytv0.data.EPG
- Direction
- com.lizongying.mytv0.ProgramAdapter uses com.lizongying.mytv0.data, so a change to com.lizongying.mytv0.data can break com.lizongying.mytv0.ProgramAdapter, while a change to com.lizongying.mytv0.ProgramAdapter can't break com.lizongying.mytv0.data.
- Position
- Below the diagonal: com.lizongying.mytv0.ProgramAdapter uses a module listed above it, which is the healthy direction.
30→21 com.lizongying.mytv0.data.SourceType uses com.lizongying.mytv0.data✕
- Connections
- 7 pairs of types, where a type in com.lizongying.mytv0.data.SourceType uses a type in com.lizongying.mytv0.data.
- The types involved
com.lizongying.mytv0.data.SourceType.DASH→com.lizongying.mytv0.data.SourceTypecom.lizongying.mytv0.data.SourceType.HLS→com.lizongying.mytv0.data.SourceTypecom.lizongying.mytv0.data.SourceType.PROGRESSIVE→com.lizongying.mytv0.data.SourceTypecom.lizongying.mytv0.data.SourceType.RTMP→com.lizongying.mytv0.data.SourceTypecom.lizongying.mytv0.data.SourceType.RTP→com.lizongying.mytv0.data.SourceTypecom.lizongying.mytv0.data.SourceType.RTSP→com.lizongying.mytv0.data.SourceTypecom.lizongying.mytv0.data.SourceType.UNKNOWN→com.lizongying.mytv0.data.SourceType
- Direction
- com.lizongying.mytv0.data.SourceType uses com.lizongying.mytv0.data, so a change to com.lizongying.mytv0.data can break com.lizongying.mytv0.data.SourceType, while a change to com.lizongying.mytv0.data.SourceType can't break com.lizongying.mytv0.data.
- Position
- Below the diagonal: com.lizongying.mytv0.data.SourceType uses a module listed above it, which is the healthy direction.
31→21 com.lizongying.mytv0.models uses com.lizongying.mytv0.data✕
- Connections
- 5 pairs of types, where a type in com.lizongying.mytv0.models uses a type in com.lizongying.mytv0.data.
- The types involved
com.lizongying.mytv0.models.EPGXmlParser→com.lizongying.mytv0.data.EPGcom.lizongying.mytv0.models.Sources→com.lizongying.mytv0.data.Sourcecom.lizongying.mytv0.models.TVModel→com.lizongying.mytv0.data.EPGcom.lizongying.mytv0.models.TVModel→com.lizongying.mytv0.data.SourceTypecom.lizongying.mytv0.models.TVModel→com.lizongying.mytv0.data.TV
- Direction
- com.lizongying.mytv0.models uses com.lizongying.mytv0.data, so a change to com.lizongying.mytv0.data can break com.lizongying.mytv0.models, while a change to com.lizongying.mytv0.models can't break com.lizongying.mytv0.data.
- Position
- Below the diagonal: com.lizongying.mytv0.models uses a module listed above it, which is the healthy direction.
32→31 com.lizongying.mytv0.GroupAdapter uses com.lizongying.mytv0.models✕
- Connections
- 1 pair of types, where a type in com.lizongying.mytv0.GroupAdapter uses a type in com.lizongying.mytv0.models.
- The types involved
com.lizongying.mytv0.GroupAdapter.ItemListener→com.lizongying.mytv0.models.TVListModel
- Direction
- com.lizongying.mytv0.GroupAdapter uses com.lizongying.mytv0.models, so a change to com.lizongying.mytv0.models can break com.lizongying.mytv0.GroupAdapter, while a change to com.lizongying.mytv0.GroupAdapter can't break com.lizongying.mytv0.models.
- Position
- Below the diagonal: com.lizongying.mytv0.GroupAdapter uses a module listed above it, which is the healthy direction.
33→31 com.lizongying.mytv0.ListAdapter uses com.lizongying.mytv0.models✕
- Connections
- 2 pairs of types, where a type in com.lizongying.mytv0.ListAdapter uses a type in com.lizongying.mytv0.models.
- The types involved
com.lizongying.mytv0.ListAdapter.ItemListener→com.lizongying.mytv0.models.TVModelcom.lizongying.mytv0.ListAdapter.ViewHolder→com.lizongying.mytv0.models.TVModel
- Direction
- com.lizongying.mytv0.ListAdapter uses com.lizongying.mytv0.models, so a change to com.lizongying.mytv0.models can break com.lizongying.mytv0.ListAdapter, while a change to com.lizongying.mytv0.ListAdapter can't break com.lizongying.mytv0.models.
- Position
- Below the diagonal: com.lizongying.mytv0.ListAdapter uses a module listed above it, which is the healthy direction.
33→34 com.lizongying.mytv0.ListAdapter uses com.lizongying.mytv0 part of a loop✕
- Connections
- 3 pairs of types, where a type in com.lizongying.mytv0.ListAdapter uses a type in com.lizongying.mytv0.
- The types involved
com.lizongying.mytv0.ListAdapter.ItemListener→com.lizongying.mytv0.ListAdaptercom.lizongying.mytv0.ListAdapter.ViewHolder→com.lizongying.mytv0.ImageHelpercom.lizongying.mytv0.ListAdapter.ViewHolder→com.lizongying.mytv0.MyTVApplication
- Direction
- com.lizongying.mytv0.ListAdapter uses com.lizongying.mytv0, so a change to com.lizongying.mytv0 can break com.lizongying.mytv0.ListAdapter, while a change to com.lizongying.mytv0.ListAdapter can't break com.lizongying.mytv0.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
34→4 com.lizongying.mytv0 uses com.lizongying.mytv0.ConfirmationFragment✕
- Connections
- 2 pairs of types, where a type in com.lizongying.mytv0 uses a type in com.lizongying.mytv0.ConfirmationFragment.
- The types involved
com.lizongying.mytv0.ConfirmationFragment→com.lizongying.mytv0.ConfirmationFragment.ConfirmationListenercom.lizongying.mytv0.UpdateManager→com.lizongying.mytv0.ConfirmationFragment.ConfirmationListener
- Direction
- com.lizongying.mytv0 uses com.lizongying.mytv0.ConfirmationFragment, so a change to com.lizongying.mytv0.ConfirmationFragment can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break com.lizongying.mytv0.ConfirmationFragment.
- Position
- Below the diagonal: com.lizongying.mytv0 uses a module listed above it, which is the healthy direction.
34→17 com.lizongying.mytv0 uses com.lizongying.mytv0.SourcesAdapter✕
- Connections
- 3 pairs of types, where a type in com.lizongying.mytv0 uses a type in com.lizongying.mytv0.SourcesAdapter.
- The types involved
com.lizongying.mytv0.SourcesAdapter→com.lizongying.mytv0.SourcesAdapter.ItemListenercom.lizongying.mytv0.SourcesAdapter→com.lizongying.mytv0.SourcesAdapter.ViewHoldercom.lizongying.mytv0.SourcesFragment→com.lizongying.mytv0.SourcesAdapter.ItemListener
- Direction
- com.lizongying.mytv0 uses com.lizongying.mytv0.SourcesAdapter, so a change to com.lizongying.mytv0.SourcesAdapter can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break com.lizongying.mytv0.SourcesAdapter.
- Position
- Below the diagonal: com.lizongying.mytv0 uses a module listed above it, which is the healthy direction.
34→20 com.lizongying.mytv0 uses com.lizongying.mytv0.UpdateManager✕
- Connections
- 1 pair of types, where a type in com.lizongying.mytv0 uses a type in com.lizongying.mytv0.UpdateManager.
- The types involved
com.lizongying.mytv0.UpdateManager→com.lizongying.mytv0.UpdateManager.DownloadReceiver
- Direction
- com.lizongying.mytv0 uses com.lizongying.mytv0.UpdateManager, so a change to com.lizongying.mytv0.UpdateManager can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break com.lizongying.mytv0.UpdateManager.
- Position
- Below the diagonal: com.lizongying.mytv0 uses a module listed above it, which is the healthy direction.
34→21 com.lizongying.mytv0 uses com.lizongying.mytv0.data✕
- Connections
- 3 pairs of types, where a type in com.lizongying.mytv0 uses a type in com.lizongying.mytv0.data.
- The types involved
com.lizongying.mytv0.ProgramAdapter→com.lizongying.mytv0.data.EPGcom.lizongying.mytv0.ProgramFragment→com.lizongying.mytv0.data.EPGcom.lizongying.mytv0.UpdateManager→com.lizongying.mytv0.data.ReleaseResponse
- Direction
- com.lizongying.mytv0 uses com.lizongying.mytv0.data, so a change to com.lizongying.mytv0.data can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break com.lizongying.mytv0.data.
- Position
- Below the diagonal: com.lizongying.mytv0 uses a module listed above it, which is the healthy direction.
34→29 com.lizongying.mytv0 uses com.lizongying.mytv0.ProgramAdapter✕
- Connections
- 3 pairs of types, where a type in com.lizongying.mytv0 uses a type in com.lizongying.mytv0.ProgramAdapter.
- The types involved
com.lizongying.mytv0.ProgramAdapter→com.lizongying.mytv0.ProgramAdapter.ItemListenercom.lizongying.mytv0.ProgramAdapter→com.lizongying.mytv0.ProgramAdapter.ViewHoldercom.lizongying.mytv0.ProgramFragment→com.lizongying.mytv0.ProgramAdapter.ItemListener
- Direction
- com.lizongying.mytv0 uses com.lizongying.mytv0.ProgramAdapter, so a change to com.lizongying.mytv0.ProgramAdapter can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break com.lizongying.mytv0.ProgramAdapter.
- Position
- Below the diagonal: com.lizongying.mytv0 uses a module listed above it, which is the healthy direction.
34→31 com.lizongying.mytv0 uses com.lizongying.mytv0.models✕
- Connections
- 8 pairs of types, where a type in com.lizongying.mytv0 uses a type in com.lizongying.mytv0.models.
- The types involved
com.lizongying.mytv0.ChannelFragment→com.lizongying.mytv0.models.TVModelcom.lizongying.mytv0.GroupAdapter→com.lizongying.mytv0.models.TVGroupModelcom.lizongying.mytv0.InfoFragment→com.lizongying.mytv0.models.TVModelcom.lizongying.mytv0.ListAdapter→com.lizongying.mytv0.models.TVListModelcom.lizongying.mytv0.MenuFragment→com.lizongying.mytv0.models.TVListModelcom.lizongying.mytv0.MenuFragment→com.lizongying.mytv0.models.TVModelcom.lizongying.mytv0.PlayerFragment→com.lizongying.mytv0.models.TVModelcom.lizongying.mytv0.SourcesAdapter→com.lizongying.mytv0.models.Sources
- Direction
- com.lizongying.mytv0 uses com.lizongying.mytv0.models, so a change to com.lizongying.mytv0.models can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break com.lizongying.mytv0.models.
- Position
- Below the diagonal: com.lizongying.mytv0 uses a module listed above it, which is the healthy direction.
34→32 com.lizongying.mytv0 uses com.lizongying.mytv0.GroupAdapter✕
- Connections
- 3 pairs of types, where a type in com.lizongying.mytv0 uses a type in com.lizongying.mytv0.GroupAdapter.
- The types involved
com.lizongying.mytv0.GroupAdapter→com.lizongying.mytv0.GroupAdapter.ItemListenercom.lizongying.mytv0.GroupAdapter→com.lizongying.mytv0.GroupAdapter.ViewHoldercom.lizongying.mytv0.MenuFragment→com.lizongying.mytv0.GroupAdapter.ItemListener
- Direction
- com.lizongying.mytv0 uses com.lizongying.mytv0.GroupAdapter, so a change to com.lizongying.mytv0.GroupAdapter can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break com.lizongying.mytv0.GroupAdapter.
- Position
- Below the diagonal: com.lizongying.mytv0 uses a module listed above it, which is the healthy direction.
34→33 com.lizongying.mytv0 uses com.lizongying.mytv0.ListAdapter✕
- Connections
- 3 pairs of types, where a type in com.lizongying.mytv0 uses a type in com.lizongying.mytv0.ListAdapter.
- The types involved
com.lizongying.mytv0.ListAdapter→com.lizongying.mytv0.ListAdapter.ItemListenercom.lizongying.mytv0.ListAdapter→com.lizongying.mytv0.ListAdapter.ViewHoldercom.lizongying.mytv0.MenuFragment→com.lizongying.mytv0.ListAdapter.ItemListener
- Direction
- com.lizongying.mytv0 uses com.lizongying.mytv0.ListAdapter, so a change to com.lizongying.mytv0.ListAdapter can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break com.lizongying.mytv0.ListAdapter.
- Position
- Below the diagonal: com.lizongying.mytv0 uses a module listed above it, which is the healthy direction.
34→35 com.lizongying.mytv0 uses (global) part of a loop✕
- Connections
- 8 pairs of types, where a type in com.lizongying.mytv0 uses a type in (global).
- The types involved
com.lizongying.mytv0.ChannelFragment→MainViewModelcom.lizongying.mytv0.MainActivity→MainViewModelcom.lizongying.mytv0.MenuFragment→MainViewModelcom.lizongying.mytv0.ProgramFragment→MainViewModelcom.lizongying.mytv0.SettingFragment→MainViewModelcom.lizongying.mytv0.SimpleServer→MainViewModelcom.lizongying.mytv0.SourcesFragment→MainViewModelcom.lizongying.mytv0.TimeFragment→MainViewModel
- Direction
- com.lizongying.mytv0 uses (global), so a change to (global) can break com.lizongying.mytv0, while a change to com.lizongying.mytv0 can't break (global).
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
35→31 (global) uses com.lizongying.mytv0.models✕
- Connections
- 3 pairs of types, where a type in (global) uses a type in com.lizongying.mytv0.models.
- The types involved
MainViewModel→com.lizongying.mytv0.models.SourcesMainViewModel→com.lizongying.mytv0.models.TVGroupModelMainViewModel→com.lizongying.mytv0.models.TVModel
- Direction
- (global) uses com.lizongying.mytv0.models, so a change to com.lizongying.mytv0.models can break (global), while a change to (global) can't break com.lizongying.mytv0.models.
- Position
- Below the diagonal: (global) uses a module listed above it, which is the healthy direction.
35→34 (global) uses com.lizongying.mytv0✕
- Connections
- 1 pair of types, where a type in (global) uses a type in com.lizongying.mytv0.
- The types involved
MainViewModel→com.lizongying.mytv0.ImageHelper
- Direction
- (global) uses com.lizongying.mytv0, so a change to com.lizongying.mytv0 can break (global), while a change to (global) can't break com.lizongying.mytv0.
- Position
- Below the diagonal: (global) uses a module listed above it, which is the healthy direction.
36→34 com.lizongying.mytv0.ISP uses com.lizongying.mytv0✕
- Connections
- 5 pairs of types, where a type in com.lizongying.mytv0.ISP uses a type in com.lizongying.mytv0.
- The types involved
com.lizongying.mytv0.ISP.CHINA_MOBILE→com.lizongying.mytv0.ISPcom.lizongying.mytv0.ISP.CHINA_TELECOM→com.lizongying.mytv0.ISPcom.lizongying.mytv0.ISP.CHINA_UNICOM→com.lizongying.mytv0.ISPcom.lizongying.mytv0.ISP.IPV6→com.lizongying.mytv0.ISPcom.lizongying.mytv0.ISP.UNKNOWN→com.lizongying.mytv0.ISP
- Direction
- com.lizongying.mytv0.ISP uses com.lizongying.mytv0, so a change to com.lizongying.mytv0 can break com.lizongying.mytv0.ISP, while a change to com.lizongying.mytv0.ISP can't break com.lizongying.mytv0.
- Position
- Below the diagonal: com.lizongying.mytv0.ISP uses a module listed above it, which is the healthy direction.
37→34 com.lizongying.mytv0.MyTVApplication uses com.lizongying.mytv0✕
- Connections
- 1 pair of types, where a type in com.lizongying.mytv0.MyTVApplication uses a type in com.lizongying.mytv0.
- The types involved
com.lizongying.mytv0.MyTVApplication.Companion→com.lizongying.mytv0.MyTVApplication
- Direction
- com.lizongying.mytv0.MyTVApplication uses com.lizongying.mytv0, so a change to com.lizongying.mytv0 can break com.lizongying.mytv0.MyTVApplication, while a change to com.lizongying.mytv0.MyTVApplication can't break com.lizongying.mytv0.
- Position
- Below the diagonal: com.lizongying.mytv0.MyTVApplication uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 14 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 4 | Medium |
Roadmap
Top priorities: Resolve the 1 No automated tests finding(s) in Code Coverage; Resolve the 27 Orphaned file finding(s) in Knowledge Freshness — start with SettingFragment.kt, SimpleServer.kt, UpdateManager.kt; Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts. | +7.0 pts | Low | ADR Quality |
| Resolve the 1 `typeTvList` spells `Tv` where 21 names in the project spell it `TV` finding(s) in Naming Consistency — start with Global.kt. | +4.0 pts | Low | Naming Consistency |
| Resolve the 27 Orphaned file finding(s) in Knowledge Freshness — start with SettingFragment.kt, SimpleServer.kt, UpdateManager.kt. | +7.9 pts | Medium | Knowledge Freshness |
| Add a SAST step to CI running what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing. | +6.7 pts | Medium | Security & performance tooling |
| Resolve the 1 No automated tests finding(s) in Code Coverage. | +12.6 pts | High | Code Coverage |
| Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them. | +6.0 pts | Medium | Architecture documentation |
| Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it. | +3.7 pts | Medium | Deployment & Rollback |
| Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4). | +1.0 pts | Low | Static Analysis (SAST) |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.7 | Slop | Static Analysis (SAST): High: REDACTED |
| app/src/main/java/com/lizongying/mytv0/MainActivity.kt | 6.0 | Mixed | Explicit Debt: TodoComment |
| app/src/main/java/com/lizongying/mytv0/SettingFragment.kt | 6.7 | Mixed | Explicit Debt: TodoComment |
| app/src/main/java/com/lizongying/mytv0/InfoFragment.kt | 6.7 | Mixed | Explicit Debt: TodoComment |
| REDACTED | 6.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| app/src/main/java/com/lizongying/mytv0/ListAdapter.kt | 7.1 | Mixed | Cognitive Complexity: ListAdapter.onBindViewHolder (cognitive 20) |
| app/src/main/java/com/lizongying/mytv0/MainViewModel.kt | 7.1 | Mixed | Cyclomatic Complexity: MainViewModel.str2Channels (cyclomatic 37) |
| app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt | 7.2 | Mixed | Cognitive Complexity: GroupAdapter.onBindViewHolder (cognitive 17) |
| app/src/main/java/com/lizongying/mytv0/SimpleServer.kt | 7.4 | Mixed | Code Duplication: Edited copies of one member (3 members, 25+ corresponding lines) |
| app/src/main/java/com/lizongying/mytv0/models/TVModel.kt | 8.2 | Near-clean | Explicit Debt: TodoComment |
| app/src/main/java/com/lizongying/mytv0/PlayerFragment.kt | 8.5 | Near-clean | Cognitive Complexity: PlayerFragment.updatePlayer (cognitive 20) |
| app/src/main/java/com/lizongying/mytv0/ChannelFragment.kt | 8.5 | Near-clean | Code Duplication: Edited copy of a member (21 corresponding lines) |
| app/src/main/java/com/lizongying/mytv0/models/TVGroupModel.kt | 8.5 | Near-clean | Code Duplication: Edited copy of a member (29 corresponding lines) |
| app/src/main/java/com/lizongying/mytv0/ImageHelper.kt | 8.5 | Near-clean | Code Duplication: Edited copy of a member (17 corresponding lines) |
| app/src/main/java/com/lizongying/mytv0/ModalFragment.kt | 8.5 | Near-clean | Code Duplication: Duplicated block (7 lines × 2) |
| app/build.gradle.kts | 9.5 | Near-clean | ADR Quality: No ADRs found |
| app/src/main/java/com/lizongying/mytv0/data/Global.kt | 9.5 | Near-clean | Naming Consistency: `typeTvList` spells `Tv` where 21 names in the project spell it `TV` |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 42 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.9, the weighted average across measured dimensions.
What we checked — 42 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 85 of 97 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Canine Code Analyzer duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ deterministic |
Run transparency — what happened this run
- D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — a Gradle build resolved 173 artifact(s) across its subprojects (65 behind a shipped release, reported), but the currency signal was not established over the whole graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (5 contributor(s) across 151 commit(s) sampled, automation and bot accounts excluded). One of them holds 97% of the history; the other 4 hold 0.8% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
- D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
- D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
- D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict.
- D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
- AX6 Interface segregation — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- GD1 Unfinished & placeholder code — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby or Scala was found, and this repository's Kotlin is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby or Scala was found, and this repository's Kotlin is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- P1 CI/CD gates — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. A CI pipeline exists and the word "test" appears, but no explicit test-runner invocation (your stack's test command, or a test job) was matched — so either the gate runs tests through a step this pass could not recognise, or "test" is incidental here (a path, "latest", a reporter). Which of the two it is cannot be settled from this dimension's evidence; the coverage dimensions report whether a suite exists at all. You can widen what we reach: name the test runner explicitly in the pipeline step (your stack's test command, or a job named for the suite) so the gate is unambiguous to a reader and to this pass.
- P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
- S1 Web-Security Posture — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
- X24 Document value interpolated into markup unescaped — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D8 Code Coverage: Coverage is measured by building and running the test suite inside our isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
- D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
- D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
Dimensions
D1 · Cyclomatic Complexity
1 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was MainViewModel.str2Channels at 37. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being MainActivity.onKey at 30 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: app/src/main/java/com/lizongying/mytv0/MainActivity.kt (MainActivity.onKey at 30). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
What to do
- Bring the 1 body over 15 down to 15 or less in Cyclomatic Complexity — start with MainViewModel.str2Channels (cyclomatic 37). — Refactoring it lifts Cyclomatic Complexity from 9.0 to about 10.0/10.
D2 · Cognitive Complexity
6 method(s) exceeded the cognitive complexity threshold of 15; the worst was MainViewModel.str2Channels at 89.
What to do
- Bring the 1 body over 30 down to 30 or less in Cognitive Complexity — start with MainViewModel.str2Channels (cognitive 89). — Refactoring it lifts Cognitive Complexity from 7.7 to about 8.8/10.
D3 · God Classes
4 god class(es) detected.
What to do
- Resolve the 2 MethodTooLong finding(s) in God Classes — start with SettingFragment.kt, MainViewModel.kt. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 ClassTooLong finding(s) in God Classes — start with MainActivity.kt. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 FileTooLong finding(s) in God Classes — start with MainActivity.kt. — One of this dimension's main actionable groups (1 warning-level).
D4 · Code Duplication
8 duplicated block group(s) detected. A further 13 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.
What to do
- Resolve the 2 Edited copy of a member (19 corresponding lines) finding(s) in Code Duplication — start with MainActivity.kt, SimpleServer.kt. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Edited copy of a member (9 corresponding lines) finding(s) in Code Duplication — start with ListAdapter.kt, GroupAdapter.kt. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Edited copy of a member (13 corresponding lines) finding(s) in Code Duplication — start with ListAdapter.kt, MainActivity.kt. — One of this dimension's main actionable groups (2 warning-level).
D5 · Coupling
2 production modules (Gradle), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; edges a convention plugin adds from buildSrc or build-logic are not visible there; 0 module(s) off the main sequence, with abstractness counted on 1 of the 2 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
D6 · Cohesion (LCOM4)
0 of 22 classes have LCOM4 above 3.
D8 · Code Coverage
No automated tests — no test code was found in this repository.
What to do
- Resolve the 1 No automated tests finding(s) in Code Coverage. — One of this dimension's main actionable groups (1 issue-level).
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D14 · License Compliance
0 of 7 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 3 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. A further 13 coordinate(s) are not published to Maven Central — another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact — so their licences are not readable from here and they are outside this verdict.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
4 deducted task-comment markers across 5979 LoC (0.1/KLoC) → score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 4 TodoComment finding(s) in Explicit Debt — start with InfoFragment.kt, MainActivity.kt, SettingFragment.kt. — One of this dimension's main actionable groups (4 warning-level).
D19 · Documentation Quality
1 of 1 documentation facets pass in full. 1 document(s) read across 1 unit(s).
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
1 naming inconsistencies among 21 declarations measured against a convention their peers follow.
What to do
- Resolve the 1 `typeTvList` spells `Tv` where 21 names in the project spell it `TV` finding(s) in Naming Consistency — start with Global.kt. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
14 finding(s): 0 critical, 9 high, 5 medium, 0 low. 5 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 1 file(s) — `gradlew` (line 177) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.
What to do
- Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).
- Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
- No action in Static Analysis (SAST) — all 5 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (5 issue-level, 0 of them charged here).
D34 · Knowledge Freshness
29 of 29 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is app/src/main/java/com/lizongying/mytv0/MainActivity.kt. Counted over 29 of the 51 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 27 Orphaned file finding(s) in Knowledge Freshness — start with SettingFragment.kt, SimpleServer.kt, UpdateManager.kt. — One of this dimension's main actionable groups (27 recommendation-level).
- Resolve the 2 Most significant orphaned file finding(s) in Knowledge Freshness — start with MainActivity.kt, MainViewModel.kt. — One of this dimension's main actionable groups (2 recommendation-level).
- Resolve the 1 Dormant codebase finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D36 · Supply-chain Provenance & Signing
1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 20 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 · Code composition
AX3 · Project dependency cycles
AX4 · Dependency direction
M1 · Documentation (README)
What to do
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
What to do
- Run the test suite in CI via an explicit runner step (`./gradlew test` for the toolchain this pipeline already uses) and gate merges on it.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
What to do
- Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
P6 · Release Hygiene
PF3 · Async & latency hygiene
X1 · Async correctness
X12 · Unreachable branch
X14 · Bypassable address classification
X16 · Unfloored truncation loop
X2 · Cancellation propagation
- Only 0/1 suspend functions that make a cancellable request (Ktor, OkHttp newCall, URL streams) accept the coroutine's cancellation or pass one on, so a request keeps running after whatever wanted it has given up — a screen navigated away from, a disposed widget, a superseded search. In a suspend function, make the request with a call that suspends — Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` that cancels the `Call` — not a blocking `execute()`: `withContext(Dispatchers.IO)` moves the call off the caller's thread but does not make it cancellable; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
- `saveLog` suspends, but makes its request with `newCall(…).execute()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`. — app/src/main/java/com/lizongying/mytv0/MyTVExceptionHandler.kt:59
What to do
- Thread the coroutine's cancellation through suspend functions that make requests, so the work stops when its caller gives up.
X21 · Side-effecting pattern guard
X27 · Collection changed while being enumerated
X28 · Index access outside its own emptiness guard
X3 · Exception handling
X5 · Nullable reference types
- ~7.0 `!!` not-null assertions per 1k Kotlin product lines — 50 across the 7143 line(s) of the 48 Kotlin file(s) read (generated, test and sample code not counted). Densest: app/src/main/java/com/lizongying/mytv0/MainViewModel.kt (13), app/src/main/java/com/lizongying/mytv0/PlayerFragment.kt (4), app/src/main/java/com/lizongying/mytv0/ChannelFragment.kt (3). Each one tells the compiler to trust the author about null and becomes a `NullPointerException` the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first.
What to do
- Replace `!!` rather than adding to it: each is a run-time null check the compiler could not prove. Narrow the value with a null check, an early return or `?: return`, use `?.` / `?:` where absence is legitimate, `requireNotNull(x) { "why" }` / `checkNotNull` where a missing value is a contract breach worth a message, make the property non-nullable and set it in the constructor (or `by lazy`) instead of `lateinit` plus `!!`, or change the API so the null cannot arrive.
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 76% | Strong | Solid. |
| Architecture | 99% | Exemplary | Solid. |
| Maturity | 45% | Weak — gated by D34, M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 36% | Weak — gated by D8, P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 66% | Adequate — gated by D29, D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 3 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 control(s) we could not find positive evidence for
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 72 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — Not applicable: this repository's Kotlin imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Kotlin code is a Spring, JSR-330 or CDI singleton bean.
- AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility (rendered) — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no data at rest for these controls to protect.
- C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C3 Audit Trail — No personal data detected in a persisted data model — no PII-named column (email, first_name, date_of_birth, phone_number, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
- C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
- C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
- D10 Test Quality — No tests were found in the analyzed repository to assess for quality.
- D11 Test Reliability — No test suite was found to re-run, so reliability couldn't be assessed. Two searches produced that zero and both came back empty: the classifier that reads the loaded workspace recognised no suite it could run, and a walk of the source on disk — which covers the JS/TS `*.test.*` and `*.spec.*` conventions and probes for a Pester suite — found no test source in any other ecosystem either. Neither search reaches a suite that is missing from the loaded workspace and carries no name either walk recognises, so this is 'no suite found by those two searches', not a verdict that the repository has none.
- D12 Dependency Hygiene — Not scored — a Gradle build resolved 173 artifact(s) across its subprojects (65 behind a shipped release, reported), but the currency signal was not established over the whole graph, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D16 Bus Factor — single-maintainer repository — bus factor is not applicable
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .kt, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D25 ADR Conformance — no ADRs to check
- D26 Project Cohesion — This repository is one build unit, `app` (5979 LoC, 103 module-visible types across 5 directories), within the size bounds. Not scored: a single unit of this size gives project cohesion nothing to grade.
- D27 Navigability — symbol resolution incomplete — navigability not assessed
- D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (11 value object(s))
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P2 Observability — This repository's JVM source (1 module(s), 48 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `@Benchmark` in a Java, Kotlin or Scala file importing JMH or kotlinx-benchmark, Jetpack Benchmark's `measureRepeated` in a file importing androidx.benchmark, or JMH/kotlinx-benchmark/androidx.benchmark in a pom.xml, Gradle or sbt build, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
- S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X18 Disposal-pattern correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X20 Mistyped argument guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X25 Inert configuration knob — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X29 Per-element action decided by a fixed element — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X30 Support guard that admits what it rejects — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Kotlin was read, and it logs through none that an assembled message defeats: Android's `Log` and Timber, java.util.logging and log4j-api-kotlin take one finished message (as log4net does in C#), or it makes no call through a named logger at all. Calls made through SLF4J, log4j 2 or kotlin-logging (`LoggerFactory.getLogger`, `KotlinLogging.logger {}`) would be judged.
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 10 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No automated tests
Serious — 43 finding(s)
- TodoComment app/src/main/java/com/lizongying/mytv0/InfoFragment.kt:74
- TodoComment app/src/main/java/com/lizongying/mytv0/MainActivity.kt:195
- TodoComment app/src/main/java/com/lizongying/mytv0/SettingFragment.kt:315
- TodoComment app/src/main/java/com/lizongying/mytv0/models/TVModel.kt:167
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- MethodTooLong: SettingFragment.onCreateView app/src/main/java/com/lizongying/mytv0/SettingFragment.kt:43
- MethodTooLong: MainViewModel.str2Channels app/src/main/java/com/lizongying/mytv0/MainViewModel.kt:378
- Edited copy of a member (19 corresponding lines) app/src/main/java/com/lizongying/mytv0/MainActivity.kt:456
- Edited copy of a member (19 corresponding lines) app/src/main/java/com/lizongying/mytv0/SimpleServer.kt:143
- Edited copy of a member (9 corresponding lines) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt:234
- Edited copy of a member (9 corresponding lines) app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt:53
- Edited copy of a member (13 corresponding lines) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt:263
- Edited copy of a member (13 corresponding lines) app/src/main/java/com/lizongying/mytv0/MainActivity.kt:588
- Duplicated block (8 lines × 2) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt:235
- Duplicated block (8 lines × 2) app/src/main/java/com/lizongying/mytv0/SimpleServer.kt:107
- Duplicated block (7 lines × 2) app/src/main/java/com/lizongying/mytv0/MainViewModel.kt:242
- Duplicated block (7 lines × 2) app/src/main/java/com/lizongying/mytv0/ModalFragment.kt:26
- MainViewModel.str2Channels (cyclomatic 37) app/src/main/java/com/lizongying/mytv0/MainViewModel.kt:378
- MainViewModel.str2Channels (cognitive 89) app/src/main/java/com/lizongying/mytv0/MainViewModel.kt:378
- MainActivity.ready (cognitive 30) app/src/main/java/com/lizongying/mytv0/MainActivity.kt:123
- ListAdapter.onBindViewHolder (cognitive 20) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt:80
- PlayerFragment.updatePlayer (cognitive 20) app/src/main/java/com/lizongying/mytv0/PlayerFragment.kt:56
- GestureListener.onFling (cognitive 18) app/src/main/java/com/lizongying/mytv0/MainActivity.kt:320
- GroupAdapter.onBindViewHolder (cognitive 17) app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt:68
- REDACTED
- ClassTooLong: MainActivity app/src/main/java/com/lizongying/mytv0/MainActivity.kt:32
- FileTooLong: mytv0/MainActivity.kt app/src/main/java/com/lizongying/mytv0/MainActivity.kt
- REDACTED
- Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt:68
- Edited copy of a member (18 corresponding lines) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt:39
- Edited copy of a member (21 corresponding lines) app/src/main/java/com/lizongying/mytv0/ChannelFragment.kt:32
- Edited copies of one member (3 members, 28+ corresponding lines) app/src/main/java/com/lizongying/mytv0/MainViewModel.kt:237
- Edited copies of one member (3 members, 25+ corresponding lines) app/src/main/java/com/lizongying/mytv0/SimpleServer.kt:185
- Edited copy of a member (29 corresponding lines) app/src/main/java/com/lizongying/mytv0/models/TVGroupModel.kt:134
- Edited copy of a member (17 corresponding lines) app/src/main/java/com/lizongying/mytv0/ImageHelper.kt:30
- Duplicated block (30–33 lines × 4) app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt:124
- Duplicated block (17 lines × 2) app/src/main/java/com/lizongying/mytv0/MainActivity.kt:849
- Duplicated block (23 lines × 2) app/src/main/java/com/lizongying/mytv0/InfoFragment.kt:90
- Duplicated block (10 lines × 2) app/src/main/java/com/lizongying/mytv0/ListAdapter.kt:47
- Suspend function with a blocking request: saveLog app/src/main/java/com/lizongying/mytv0/MyTVExceptionHandler.kt:59
Minor — 44 finding(s)
- Orphaned file app/src/main/java/com/lizongying/mytv0/SettingFragment.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/SimpleServer.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/UpdateManager.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/ListAdapter.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/PlayerFragment.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/MenuFragment.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/SP.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/SourcesAdapter.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/models/TVModel.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/models/TVGroupModel.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/ProgramAdapter.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/Utils.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/InfoFragment.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/ChannelFragment.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/models/TVListModel.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/requests/HttpClient.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/models/Sources.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/MyTVApplication.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/SourcesFragment.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/TimeFragment.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/ImageHelper.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/ModalFragment.kt:1
- Orphaned file app/src/main/java/com/lizongying/mytv0/ProgramFragment.kt:1
- Orphaned file REDACTED:1
- Duplicated predicate app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt:72
- Duplicated predicate app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt:143
- Duplicated predicate app/src/main/java/com/lizongying/mytv0/GroupAdapter.kt:127
- Most significant orphaned file app/src/main/java/com/lizongying/mytv0/MainActivity.kt:1
- Most significant orphaned file app/src/main/java/com/lizongying/mytv0/MainViewModel.kt:1
- No ADRs found app/build.gradle.kts:4
- `typeTvList` spells `Tv` where 21 names in the project spell it `TV` app/src/main/java/com/lizongying/mytv0/data/Global.kt:9
- Dormant codebase
- REDACTED
- REDACTED
- REDACTED
- No ADRs
- No architecture diagram/doc
- No SAST
- No release approval gate
- Not all suspend functions that make a request accept the coroutine's cancellation
- Not-null assertions (`!!`) override null safety
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-27eb42e0c0044da697b9d0505557ae76/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-27eb42e0c0044da697b9d0505557ae76/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt . | 14 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | none (dependency manifest found, not scanned for vulnerabilities here) | — | none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet). | 0 | — |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | none (dependency manifest found, not scanned for vulnerabilities here) | — | none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet). | 0 | — |