Executive summary
Gurupreet/ComposeCookBook falls short of our standard for production, held back most by its Domain Modelling lens, the way the code models the business it serves. It scores 54 out of 100 and is rated Adequate, and all 22 of its critical findings are security problems.
Domain Modelling, at 40, is the weakest lens and counts most in the score. The best first step is improving the documentation, worth about 6 points. Introducing dedicated id types would lift Domain Modelling itself, worth about 5 points. Raising Domain Modelling to 70 would lift the score to about 65.
Nineteen pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. One automatic update takes new releases before a bad one can be spotted, and one password or key is open to anyone who can read the repository. Pinning each tool to an exact version, setting a waiting period for automatic updates and replacing the exposed password or key would close these risks. Passing outside input through environment variables would fix the pipeline step that puts outside input straight into a shell command.
The product code is 24,194 lines, about €29,000 to rebuild.
If Domain Modelling rose from 40 to 70, the lowest score rated Strong, the score would rise from 54 to about 65.
New since the last survey: 34 findings
- Code Duplication · Near-duplicate member pair (94 shared lines) app/src/main/java/com/guru/composecookbook/MainActivity.kt
- Code Duplication · Edited copy of a member (57 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/constraintlayout/ConstraintLayoutDemos.kt
- Code Duplication · Edited copy of a member (33 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/lists/GridListItem.kt
- Code Duplication · Edited copy of a member (38 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/tabslayout/TabLayout.kt
- Code Duplication · Edited copy of a member (17 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/advancelists/Shimmer.kt
- Code Duplication · Edited copy of a member (19 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/customfling/VerticalFlingerListItem.kt
- Code Duplication · Edited copies of one member (3 members, 25+ corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/customfling/FlingListActivity.kt
- Code Duplication · Edited copy of a member (18 corresponding lines) app/src/main/java/com/guru/composecookbook/theme/SystemUI.kt
- Code Duplication · Edited copies of one member (3 members, 16+ corresponding lines) components/carousel/src/main/java/com/guru/composecookbook/carousel/CarouselLayout.kt
- Code Duplication · Edited copy of a member (17 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/advancelists/AdvanceListsActivity.kt
- Code Duplication · Edited copy of a member (8 corresponding lines) components/carousel/src/main/java/com/guru/composecookbook/carousel/CarouselDot.kt
- Code Duplication · Duplicated block (31 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/tabslayout/TabLayout.kt
- Code Duplication · Duplicated block (21 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt
- Code Duplication · Duplicated block (16 lines × 10) app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt
- Code Duplication · Duplicated block (16 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt
- Code Duplication · Duplicated block (13 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/customfling/VerticalFlingerListItem.kt
- Code Duplication · Duplicated block (11 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/clock/ClockView.kt
- Code Duplication · Duplicated block (9 lines × 2) app/src/main/java/com/guru/composecookbook/ui/animation/AnimateAsStateAnimations.kt
- Code Duplication · Duplicated block (9 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/advancelists/AnimatedLists.kt
- Code Duplication · Duplicated block (8 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/dialogs/DialogsActivity.kt
- Code Duplication · Duplicated block (12 lines × 2) app/src/main/java/com/guru/composecookbook/ui/learnwidgets/SearchBars.kt
- Code Duplication · Duplicated block (8 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/motionlayout/MotionLayoutDemo.kt
- Code Duplication · Edited copy of a member (24 corresponding lines) demos/moviesapp/app/src/main/java/com/guru/composecookbook/moviesapp/ui/home/MoviesHomeActivity.kt
- Code Duplication · Edited copy of a member (29 corresponding lines) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageScreen.kt
- Code Duplication · Edited copy of a member (14 corresponding lines) demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/ListTypeConverter.kt
- Code Duplication · Edited copy of a member (10 corresponding lines) demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/repositories/MovieRepositoryImpl.kt
- Code Duplication · Edited copy of a member (11 corresponding lines) demos/instagram/src/main/java/com/guru/composecookbook/instagram/InstagramActivity.kt
- Code Duplication · Edited copy of a member (10 corresponding lines) demos/twitter/src/main/java/com/guru/composecookbook/twitter/TwitterActivity.kt
- Code Duplication · Edited copies of one member (5 members, 5+ corresponding lines) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/GmailActivity.kt
- Code Duplication · Duplicated block (9–10 lines × 2) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageBody.kt
- Code Duplication · Duplicated block (10 lines × 2) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageScreen.kt
- Code Duplication · Duplicated block (8 lines × 5) demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/repositories/MoviesLaneRepositoryImpl.kt
- Code Duplication · Duplicated block (6 lines × 2) demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/ListTypeConverter.kt
- Code Duplication · Duplicated block (12 lines × 2) demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/ListTypeConverter.kt
Fixed since the last survey: 19 findings
- Code Duplication · Near-duplicate member pair (94 shared lines) app/src/main/java/com/guru/composecookbook/MainActivity.kt
- Code Duplication · Duplicated block (31 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/tabslayout/TabLayout.kt
- Code Duplication · Duplicated block (21 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt
- Code Duplication · Duplicated block (16 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt
- Code Duplication · Duplicated block (13 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/customfling/VerticalFlingerListItem.kt
- Code Duplication · Duplicated block (13 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/dialogs/BottomSheetLayouts.kt
- Code Duplication · Duplicated block (10 lines × 10) app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt
- Code Duplication · Duplicated block (10 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/dialogs/BottomSheetLayouts.kt
- Code Duplication · Duplicated block (9 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/advancelists/AnimatedLists.kt
- Code Duplication · Duplicated block (8 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/dialogs/DialogsActivity.kt
- Code Duplication · Duplicated block (10 lines × 3) app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt
- Code Duplication · Duplicated block (9 lines × 6) app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt
- Code Duplication · Duplicated block (8 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/motionlayout/MotionLayoutDemo.kt
- Code Duplication · Duplicated block (7 lines × 4) app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt
- Code Duplication · Duplicated block (9–10 lines × 2) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageBody.kt
- Code Duplication · Duplicated block (10 lines × 2) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageScreen.kt
- Code Duplication · Duplicated block (8 lines × 5) demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/repositories/MoviesLaneRepositoryImpl.kt
- Code Duplication · Duplicated block (12 lines × 2) demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/ListTypeConverter.kt
- Churn × Complexity Hotspots · Hotspot: app/src/main/java/com/guru/composecookbook/ui/home/HomeScreen.kt app/src/main/java/com/guru/composecookbook/ui/home/HomeScreen.kt
Rebuild cost: about €29,000 · Estimate
| Cost to rebuild | €9,600 to €48,000, for 160 to 507 hours of work, about 0.2 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.8 at a score of 54. 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 | Medium: 24,194 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 — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 cascademenu.cascade | 2 data.model | 3 fab | 4 paymentcard | 5 theme | 6 ui.animation | 7 ui.home.contrast | 8 ui.home.dialogs | 9 ui.home.dynamic | 10 ui.home.tabslayout | 11 ui.home.timer | 12 com.guru.composecookbook | 13 carousel | 14 cascademenu | 15 data | 16 data.model.HomeScreenItems | 17 fab.ExpandableFabStates | 18 paymentcard.CardType | 19 theme.ColorPallet | 20 ui.animation.MyAnimationState | 21 ui.home | 22 ui.home.adaptive | 23 ui.home.advancelists | 24 ui.home.contrast.ContrastLevel | 25 ui.home.customfling | 26 ui.home.dialogs.DialogType | 27 ui.home.dynamic.DynamicUiType | 28 ui.home.lists | 29 ui.home.sharedelement | 30 ui.home.tabslayout.DemoTabs | 31 ui.home.timer.TimerAnimation | 32 ui.home.timer.TimerType | 33 App | 34 BottomNavType | 35 carousel.SelectionState | 36 ui.home.adaptive.AdaptiveDemoDestination | 37 ui.home.advancelists.ShimmerAnimationType | 38 ui.home.customfling.FlingListViewTypes | 39 ui.home.customfling.FlingStateStore | 40 ui.home.lists.ListViewType |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 cascademenu.cascade | ||||||||||||||||||||||||||||||||||||||||
| 2 data.model | ||||||||||||||||||||||||||||||||||||||||
| 3 fab | ||||||||||||||||||||||||||||||||||||||||
| 4 paymentcard | ||||||||||||||||||||||||||||||||||||||||
| 5 theme | ||||||||||||||||||||||||||||||||||||||||
| 6 ui.animation | ||||||||||||||||||||||||||||||||||||||||
| 7 ui.home.contrast | ||||||||||||||||||||||||||||||||||||||||
| 8 ui.home.dialogs | ||||||||||||||||||||||||||||||||||||||||
| 9 ui.home.dynamic | ||||||||||||||||||||||||||||||||||||||||
| 10 ui.home.tabslayout | ||||||||||||||||||||||||||||||||||||||||
| 11 ui.home.timer | ||||||||||||||||||||||||||||||||||||||||
| 12 com.guru.composecookbook | 2 | |||||||||||||||||||||||||||||||||||||||
| 13 carousel | 2 | |||||||||||||||||||||||||||||||||||||||
| 14 cascademenu | 1 | |||||||||||||||||||||||||||||||||||||||
| 15 data | 4 | |||||||||||||||||||||||||||||||||||||||
| 16 data.model.HomeScreenItems | 19 | |||||||||||||||||||||||||||||||||||||||
| 17 fab.ExpandableFabStates | 2 | |||||||||||||||||||||||||||||||||||||||
| 18 paymentcard.CardType | 2 | |||||||||||||||||||||||||||||||||||||||
| 19 theme.ColorPallet | 5 | |||||||||||||||||||||||||||||||||||||||
| 20 ui.animation.MyAnimationState | 3 | |||||||||||||||||||||||||||||||||||||||
| 21 ui.home | 1 | 2 | ||||||||||||||||||||||||||||||||||||||
| 22 ui.home.adaptive | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 ui.home.advancelists | 2 | |||||||||||||||||||||||||||||||||||||||
| 24 ui.home.contrast.ContrastLevel | 3 | |||||||||||||||||||||||||||||||||||||||
| 25 ui.home.customfling | 4 | |||||||||||||||||||||||||||||||||||||||
| 26 ui.home.dialogs.DialogType | 8 | |||||||||||||||||||||||||||||||||||||||
| 27 ui.home.dynamic.DynamicUiType | 9 | |||||||||||||||||||||||||||||||||||||||
| 28 ui.home.lists | 4 | |||||||||||||||||||||||||||||||||||||||
| 29 ui.home.sharedelement | 1 | |||||||||||||||||||||||||||||||||||||||
| 30 ui.home.tabslayout.DemoTabs | 3 | |||||||||||||||||||||||||||||||||||||||
| 31 ui.home.timer.TimerAnimation | 5 | |||||||||||||||||||||||||||||||||||||||
| 32 ui.home.timer.TimerType | 3 | |||||||||||||||||||||||||||||||||||||||
| 33 App | 1 | |||||||||||||||||||||||||||||||||||||||
| 34 BottomNavType | 5 | |||||||||||||||||||||||||||||||||||||||
| 35 carousel.SelectionState | 2 | |||||||||||||||||||||||||||||||||||||||
| 36 ui.home.adaptive.AdaptiveDemoDestination | 3 | |||||||||||||||||||||||||||||||||||||||
| 37 ui.home.advancelists.ShimmerAnimationType | 4 | |||||||||||||||||||||||||||||||||||||||
| 38 ui.home.customfling.FlingListViewTypes | 3 | |||||||||||||||||||||||||||||||||||||||
| 39 ui.home.customfling.FlingStateStore | 1 | |||||||||||||||||||||||||||||||||||||||
| 40 ui.home.lists.ListViewType | 4 |
12→5 com.guru.composecookbook uses theme✕
- Connections
- 2 pairs of types, where a type in com.guru.composecookbook uses a type in theme.
- The types involved
com.guru.composecookbook.MainActivityKt→com.guru.composecookbook.theme.AppThemeStatecom.guru.composecookbook.MainActivityKt→com.guru.composecookbook.theme.SystemUiController
- Direction
- com.guru.composecookbook uses theme, so a change to theme can break com.guru.composecookbook, while a change to com.guru.composecookbook can't break theme.
- Position
- Below the diagonal: com.guru.composecookbook uses a module listed above it, which is the healthy direction.
13→2 carousel uses data.model✕
- Connections
- 2 pairs of types, where a type in carousel uses a type in data.model.
- The types involved
com.guru.composecookbook.carousel.CarouselLayoutKt→com.guru.composecookbook.data.model.Itemcom.guru.composecookbook.carousel.InfiniteCarouselKt→com.guru.composecookbook.data.model.Item
- Direction
- carousel uses data.model, so a change to data.model can break carousel, while a change to carousel can't break data.model.
- Position
- Below the diagonal: carousel uses a module listed above it, which is the healthy direction.
14→1 cascademenu uses cascademenu.cascade✕
- Connections
- 1 pair of types, where a type in cascademenu uses a type in cascademenu.cascade.
- The types involved
com.guru.composecookbook.cascademenu.CascadeScreenKt→com.guru.composecookbook.cascademenu.cascade.CascadeMenuItem
- Direction
- cascademenu uses cascademenu.cascade, so a change to cascademenu.cascade can break cascademenu, while a change to cascademenu can't break cascademenu.cascade.
- Position
- Below the diagonal: cascademenu uses a module listed above it, which is the healthy direction.
15→2 data uses data.model✕
- Connections
- 4 pairs of types, where a type in data uses a type in data.model.
- The types involved
com.guru.composecookbook.data.AlbumsDataProvider→com.guru.composecookbook.data.model.Albumcom.guru.composecookbook.data.DemoDataProvider→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.DemoDataProvider→com.guru.composecookbook.data.model.Itemcom.guru.composecookbook.data.DemoDataProvider→com.guru.composecookbook.data.model.Tweet
- Direction
- data uses data.model, so a change to data.model can break data, while a change to data can't break data.model.
- Position
- Below the diagonal: data uses a module listed above it, which is the healthy direction.
16→2 data.model.HomeScreenItems uses data.model✕
- Connections
- 19 pairs of types, where a type in data.model.HomeScreenItems uses a type in data.model.
- The types involved
com.guru.composecookbook.data.model.HomeScreenItems.AdaptiveUI→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.AdvanceLists→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.AndroidViews→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.BottomAppBar→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.BottomSheets→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.Carousel→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.CollapsingAppBar→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.ConstraintsLayout→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.ContrastTheme→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.CustomFling→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.Dialogs→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.Layouts→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.ListView→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.Modifiers→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.MotionLayout→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.PredictiveBack→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.PullRefresh→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.SharedElement→com.guru.composecookbook.data.model.HomeScreenItemscom.guru.composecookbook.data.model.HomeScreenItems.TabLayout→com.guru.composecookbook.data.model.HomeScreenItems
- Direction
- data.model.HomeScreenItems uses data.model, so a change to data.model can break data.model.HomeScreenItems, while a change to data.model.HomeScreenItems can't break data.model.
- Position
- Below the diagonal: data.model.HomeScreenItems uses a module listed above it, which is the healthy direction.
17→3 fab.ExpandableFabStates uses fab✕
- Connections
- 2 pairs of types, where a type in fab.ExpandableFabStates uses a type in fab.
- The types involved
com.guru.composecookbook.fab.ExpandableFabStates.Collapsed→com.guru.composecookbook.fab.ExpandableFabStatescom.guru.composecookbook.fab.ExpandableFabStates.Extended→com.guru.composecookbook.fab.ExpandableFabStates
- Direction
- fab.ExpandableFabStates uses fab, so a change to fab can break fab.ExpandableFabStates, while a change to fab.ExpandableFabStates can't break fab.
- Position
- Below the diagonal: fab.ExpandableFabStates uses a module listed above it, which is the healthy direction.
18→4 paymentcard.CardType uses paymentcard✕
- Connections
- 2 pairs of types, where a type in paymentcard.CardType uses a type in paymentcard.
- The types involved
com.guru.composecookbook.paymentcard.CardType.None→com.guru.composecookbook.paymentcard.CardTypecom.guru.composecookbook.paymentcard.CardType.Visa→com.guru.composecookbook.paymentcard.CardType
- Direction
- paymentcard.CardType uses paymentcard, so a change to paymentcard can break paymentcard.CardType, while a change to paymentcard.CardType can't break paymentcard.
- Position
- Below the diagonal: paymentcard.CardType uses a module listed above it, which is the healthy direction.
19→5 theme.ColorPallet uses theme✕
- Connections
- 5 pairs of types, where a type in theme.ColorPallet uses a type in theme.
- The types involved
com.guru.composecookbook.theme.ColorPallet.BLUE→com.guru.composecookbook.theme.ColorPalletcom.guru.composecookbook.theme.ColorPallet.GREEN→com.guru.composecookbook.theme.ColorPalletcom.guru.composecookbook.theme.ColorPallet.ORANGE→com.guru.composecookbook.theme.ColorPalletcom.guru.composecookbook.theme.ColorPallet.PURPLE→com.guru.composecookbook.theme.ColorPalletcom.guru.composecookbook.theme.ColorPallet.WALLPAPER→com.guru.composecookbook.theme.ColorPallet
- Direction
- theme.ColorPallet uses theme, so a change to theme can break theme.ColorPallet, while a change to theme.ColorPallet can't break theme.
- Position
- Below the diagonal: theme.ColorPallet uses a module listed above it, which is the healthy direction.
20→6 ui.animation.MyAnimationState uses ui.animation✕
- Connections
- 3 pairs of types, where a type in ui.animation.MyAnimationState uses a type in ui.animation.
- The types involved
com.guru.composecookbook.ui.animation.MyAnimationState.END→com.guru.composecookbook.ui.animation.MyAnimationStatecom.guru.composecookbook.ui.animation.MyAnimationState.MID→com.guru.composecookbook.ui.animation.MyAnimationStatecom.guru.composecookbook.ui.animation.MyAnimationState.START→com.guru.composecookbook.ui.animation.MyAnimationState
- Direction
- ui.animation.MyAnimationState uses ui.animation, so a change to ui.animation can break ui.animation.MyAnimationState, while a change to ui.animation.MyAnimationState can't break ui.animation.
- Position
- Below the diagonal: ui.animation.MyAnimationState uses a module listed above it, which is the healthy direction.
21→2 ui.home uses data.model✕
- Connections
- 1 pair of types, where a type in ui.home uses a type in data.model.
- The types involved
com.guru.composecookbook.ui.home.HomeScreenKt→com.guru.composecookbook.data.model.HomeScreenItems
- Direction
- ui.home uses data.model, so a change to data.model can break ui.home, while a change to ui.home can't break data.model.
- Position
- Below the diagonal: ui.home uses a module listed above it, which is the healthy direction.
21→5 ui.home uses theme✕
- Connections
- 2 pairs of types, where a type in ui.home uses a type in theme.
- The types involved
com.guru.composecookbook.ui.home.HomeScreenKt→com.guru.composecookbook.theme.AppThemeStatecom.guru.composecookbook.ui.home.HomeScreenKt→com.guru.composecookbook.theme.ColorPallet
- Direction
- ui.home uses theme, so a change to theme can break ui.home, while a change to ui.home can't break theme.
- Position
- Below the diagonal: ui.home uses a module listed above it, which is the healthy direction.
22→2 ui.home.adaptive uses data.model✕
- Connections
- 1 pair of types, where a type in ui.home.adaptive uses a type in data.model.
- The types involved
com.guru.composecookbook.ui.home.adaptive.AdaptiveUIActivityKt→com.guru.composecookbook.data.model.Album
- Direction
- ui.home.adaptive uses data.model, so a change to data.model can break ui.home.adaptive, while a change to ui.home.adaptive can't break data.model.
- Position
- Below the diagonal: ui.home.adaptive uses a module listed above it, which is the healthy direction.
23→2 ui.home.advancelists uses data.model✕
- Connections
- 2 pairs of types, where a type in ui.home.advancelists uses a type in data.model.
- The types involved
com.guru.composecookbook.ui.home.advancelists.AnimatedListsKt→com.guru.composecookbook.data.model.Tweetcom.guru.composecookbook.ui.home.advancelists.SwipeableListsKt→com.guru.composecookbook.data.model.Album
- Direction
- ui.home.advancelists uses data.model, so a change to data.model can break ui.home.advancelists, while a change to ui.home.advancelists can't break data.model.
- Position
- Below the diagonal: ui.home.advancelists uses a module listed above it, which is the healthy direction.
24→7 ui.home.contrast.ContrastLevel uses ui.home.contrast✕
- Connections
- 3 pairs of types, where a type in ui.home.contrast.ContrastLevel uses a type in ui.home.contrast.
- The types involved
com.guru.composecookbook.ui.home.contrast.ContrastLevel.High→com.guru.composecookbook.ui.home.contrast.ContrastLevelcom.guru.composecookbook.ui.home.contrast.ContrastLevel.Medium→com.guru.composecookbook.ui.home.contrast.ContrastLevelcom.guru.composecookbook.ui.home.contrast.ContrastLevel.Standard→com.guru.composecookbook.ui.home.contrast.ContrastLevel
- Direction
- ui.home.contrast.ContrastLevel uses ui.home.contrast, so a change to ui.home.contrast can break ui.home.contrast.ContrastLevel, while a change to ui.home.contrast.ContrastLevel can't break ui.home.contrast.
- Position
- Below the diagonal: ui.home.contrast.ContrastLevel uses a module listed above it, which is the healthy direction.
25→2 ui.home.customfling uses data.model✕
- Connections
- 4 pairs of types, where a type in ui.home.customfling uses a type in data.model.
- The types involved
com.guru.composecookbook.ui.home.customfling.FlingListActivity→com.guru.composecookbook.data.model.Itemcom.guru.composecookbook.ui.home.customfling.FlingListActivityKt→com.guru.composecookbook.data.model.Itemcom.guru.composecookbook.ui.home.customfling.VerticalFlingerListItemKt→com.guru.composecookbook.data.model.Itemcom.guru.composecookbook.ui.home.customfling.VerticalFlingerListKt→com.guru.composecookbook.data.model.Item
- Direction
- ui.home.customfling uses data.model, so a change to data.model can break ui.home.customfling, while a change to ui.home.customfling can't break data.model.
- Position
- Below the diagonal: ui.home.customfling uses a module listed above it, which is the healthy direction.
26→8 ui.home.dialogs.DialogType uses ui.home.dialogs✕
- Connections
- 8 pairs of types, where a type in ui.home.dialogs.DialogType uses a type in ui.home.dialogs.
- The types involved
com.guru.composecookbook.ui.home.dialogs.DialogType.DATEPICKER→com.guru.composecookbook.ui.home.dialogs.DialogTypecom.guru.composecookbook.ui.home.dialogs.DialogType.IMAGE→com.guru.composecookbook.ui.home.dialogs.DialogTypecom.guru.composecookbook.ui.home.dialogs.DialogType.LONGDIALOG→com.guru.composecookbook.ui.home.dialogs.DialogTypecom.guru.composecookbook.ui.home.dialogs.DialogType.ROUNDED→com.guru.composecookbook.ui.home.dialogs.DialogTypecom.guru.composecookbook.ui.home.dialogs.DialogType.SIMPLE→com.guru.composecookbook.ui.home.dialogs.DialogTypecom.guru.composecookbook.ui.home.dialogs.DialogType.TIMEPICKER→com.guru.composecookbook.ui.home.dialogs.DialogTypecom.guru.composecookbook.ui.home.dialogs.DialogType.TITLE→com.guru.composecookbook.ui.home.dialogs.DialogTypecom.guru.composecookbook.ui.home.dialogs.DialogType.VERTICALBUTTON→com.guru.composecookbook.ui.home.dialogs.DialogType
- Direction
- ui.home.dialogs.DialogType uses ui.home.dialogs, so a change to ui.home.dialogs can break ui.home.dialogs.DialogType, while a change to ui.home.dialogs.DialogType can't break ui.home.dialogs.
- Position
- Below the diagonal: ui.home.dialogs.DialogType uses a module listed above it, which is the healthy direction.
27→9 ui.home.dynamic.DynamicUiType uses ui.home.dynamic✕
- Connections
- 9 pairs of types, where a type in ui.home.dynamic.DynamicUiType uses a type in ui.home.dynamic.
- The types involved
com.guru.composecookbook.ui.home.dynamic.DynamicUiType.ANDROIDVIEWS→com.guru.composecookbook.ui.home.dynamic.DynamicUiTypecom.guru.composecookbook.ui.home.dynamic.DynamicUiType.BOTTOMSHEET→com.guru.composecookbook.ui.home.dynamic.DynamicUiTypecom.guru.composecookbook.ui.home.dynamic.DynamicUiType.CAROUSELL→com.guru.composecookbook.ui.home.dynamic.DynamicUiTypecom.guru.composecookbook.ui.home.dynamic.DynamicUiType.CONSTRAINTLAYOUT→com.guru.composecookbook.ui.home.dynamic.DynamicUiTypecom.guru.composecookbook.ui.home.dynamic.DynamicUiType.LAYOUTS→com.guru.composecookbook.ui.home.dynamic.DynamicUiTypecom.guru.composecookbook.ui.home.dynamic.DynamicUiType.MODIFIERS→com.guru.composecookbook.ui.home.dynamic.DynamicUiTypecom.guru.composecookbook.ui.home.dynamic.DynamicUiType.MOTIONLAYOUT→com.guru.composecookbook.ui.home.dynamic.DynamicUiTypecom.guru.composecookbook.ui.home.dynamic.DynamicUiType.PULLRERESH→com.guru.composecookbook.ui.home.dynamic.DynamicUiTypecom.guru.composecookbook.ui.home.dynamic.DynamicUiType.TABS→com.guru.composecookbook.ui.home.dynamic.DynamicUiType
- Direction
- ui.home.dynamic.DynamicUiType uses ui.home.dynamic, so a change to ui.home.dynamic can break ui.home.dynamic.DynamicUiType, while a change to ui.home.dynamic.DynamicUiType can't break ui.home.dynamic.
- Position
- Below the diagonal: ui.home.dynamic.DynamicUiType uses a module listed above it, which is the healthy direction.
28→2 ui.home.lists uses data.model✕
- Connections
- 4 pairs of types, where a type in ui.home.lists uses a type in data.model.
- The types involved
com.guru.composecookbook.ui.home.lists.GridListItemKt→com.guru.composecookbook.data.model.Itemcom.guru.composecookbook.ui.home.lists.HorizontalListItemKt→com.guru.composecookbook.data.model.Itemcom.guru.composecookbook.ui.home.lists.VerticalListItemKt→com.guru.composecookbook.data.model.Itemcom.guru.composecookbook.ui.home.lists.VerticalListItemSmallKt→com.guru.composecookbook.data.model.Item
- Direction
- ui.home.lists uses data.model, so a change to data.model can break ui.home.lists, while a change to ui.home.lists can't break data.model.
- Position
- Below the diagonal: ui.home.lists uses a module listed above it, which is the healthy direction.
29→2 ui.home.sharedelement uses data.model✕
- Connections
- 1 pair of types, where a type in ui.home.sharedelement uses a type in data.model.
- The types involved
com.guru.composecookbook.ui.home.sharedelement.SharedElementActivityKt→com.guru.composecookbook.data.model.Album
- Direction
- ui.home.sharedelement uses data.model, so a change to data.model can break ui.home.sharedelement, while a change to ui.home.sharedelement can't break data.model.
- Position
- Below the diagonal: ui.home.sharedelement uses a module listed above it, which is the healthy direction.
30→10 ui.home.tabslayout.DemoTabs uses ui.home.tabslayout✕
- Connections
- 3 pairs of types, where a type in ui.home.tabslayout.DemoTabs uses a type in ui.home.tabslayout.
- The types involved
com.guru.composecookbook.ui.home.tabslayout.DemoTabs.AMAZON→com.guru.composecookbook.ui.home.tabslayout.DemoTabscom.guru.composecookbook.ui.home.tabslayout.DemoTabs.APPLE→com.guru.composecookbook.ui.home.tabslayout.DemoTabscom.guru.composecookbook.ui.home.tabslayout.DemoTabs.GOOGLE→com.guru.composecookbook.ui.home.tabslayout.DemoTabs
- Direction
- ui.home.tabslayout.DemoTabs uses ui.home.tabslayout, so a change to ui.home.tabslayout can break ui.home.tabslayout.DemoTabs, while a change to ui.home.tabslayout.DemoTabs can't break ui.home.tabslayout.
- Position
- Below the diagonal: ui.home.tabslayout.DemoTabs uses a module listed above it, which is the healthy direction.
31→11 ui.home.timer.TimerAnimation uses ui.home.timer✕
- Connections
- 5 pairs of types, where a type in ui.home.timer.TimerAnimation uses a type in ui.home.timer.
- The types involved
com.guru.composecookbook.ui.home.timer.TimerAnimation.BOUNCE_BOTTOM→com.guru.composecookbook.ui.home.timer.TimerAnimationcom.guru.composecookbook.ui.home.timer.TimerAnimation.BOUNCE_TOP→com.guru.composecookbook.ui.home.timer.TimerAnimationcom.guru.composecookbook.ui.home.timer.TimerAnimation.NONE→com.guru.composecookbook.ui.home.timer.TimerAnimationcom.guru.composecookbook.ui.home.timer.TimerAnimation.SLIDE_BOTTOM→com.guru.composecookbook.ui.home.timer.TimerAnimationcom.guru.composecookbook.ui.home.timer.TimerAnimation.SLIDE_TOP→com.guru.composecookbook.ui.home.timer.TimerAnimation
- Direction
- ui.home.timer.TimerAnimation uses ui.home.timer, so a change to ui.home.timer can break ui.home.timer.TimerAnimation, while a change to ui.home.timer.TimerAnimation can't break ui.home.timer.
- Position
- Below the diagonal: ui.home.timer.TimerAnimation uses a module listed above it, which is the healthy direction.
32→11 ui.home.timer.TimerType uses ui.home.timer✕
- Connections
- 3 pairs of types, where a type in ui.home.timer.TimerType uses a type in ui.home.timer.
- The types involved
com.guru.composecookbook.ui.home.timer.TimerType.HH_MM→com.guru.composecookbook.ui.home.timer.TimerTypecom.guru.composecookbook.ui.home.timer.TimerType.HH_MM_SS→com.guru.composecookbook.ui.home.timer.TimerTypecom.guru.composecookbook.ui.home.timer.TimerType.MM_SS→com.guru.composecookbook.ui.home.timer.TimerType
- Direction
- ui.home.timer.TimerType uses ui.home.timer, so a change to ui.home.timer can break ui.home.timer.TimerType, while a change to ui.home.timer.TimerType can't break ui.home.timer.
- Position
- Below the diagonal: ui.home.timer.TimerType uses a module listed above it, which is the healthy direction.
33→12 App uses com.guru.composecookbook✕
- Connections
- 1 pair of types, where a type in App uses a type in com.guru.composecookbook.
- The types involved
com.guru.composecookbook.App.Companion→com.guru.composecookbook.App
- Direction
- App uses com.guru.composecookbook, so a change to com.guru.composecookbook can break App, while a change to App can't break com.guru.composecookbook.
- Position
- Below the diagonal: App uses a module listed above it, which is the healthy direction.
34→12 BottomNavType uses com.guru.composecookbook✕
- Connections
- 5 pairs of types, where a type in BottomNavType uses a type in com.guru.composecookbook.
- The types involved
com.guru.composecookbook.BottomNavType.ANIMATION→com.guru.composecookbook.BottomNavTypecom.guru.composecookbook.BottomNavType.DEMOUI→com.guru.composecookbook.BottomNavTypecom.guru.composecookbook.BottomNavType.HOME→com.guru.composecookbook.BottomNavTypecom.guru.composecookbook.BottomNavType.TEMPLATE→com.guru.composecookbook.BottomNavTypecom.guru.composecookbook.BottomNavType.WIDGETS→com.guru.composecookbook.BottomNavType
- Direction
- BottomNavType uses com.guru.composecookbook, so a change to com.guru.composecookbook can break BottomNavType, while a change to BottomNavType can't break com.guru.composecookbook.
- Position
- Below the diagonal: BottomNavType uses a module listed above it, which is the healthy direction.
35→13 carousel.SelectionState uses carousel✕
- Connections
- 2 pairs of types, where a type in carousel.SelectionState uses a type in carousel.
- The types involved
com.guru.composecookbook.carousel.SelectionState.Selected→com.guru.composecookbook.carousel.SelectionStatecom.guru.composecookbook.carousel.SelectionState.Undecided→com.guru.composecookbook.carousel.SelectionState
- Direction
- carousel.SelectionState uses carousel, so a change to carousel can break carousel.SelectionState, while a change to carousel.SelectionState can't break carousel.
- Position
- Below the diagonal: carousel.SelectionState uses a module listed above it, which is the healthy direction.
36→22 ui.home.adaptive.AdaptiveDemoDestination uses ui.home.adaptive✕
- Connections
- 3 pairs of types, where a type in ui.home.adaptive.AdaptiveDemoDestination uses a type in ui.home.adaptive.
- The types involved
com.guru.composecookbook.ui.home.adaptive.AdaptiveDemoDestination.Albums→com.guru.composecookbook.ui.home.adaptive.AdaptiveDemoDestinationcom.guru.composecookbook.ui.home.adaptive.AdaptiveDemoDestination.Favorites→com.guru.composecookbook.ui.home.adaptive.AdaptiveDemoDestinationcom.guru.composecookbook.ui.home.adaptive.AdaptiveDemoDestination.Profile→com.guru.composecookbook.ui.home.adaptive.AdaptiveDemoDestination
- Direction
- ui.home.adaptive.AdaptiveDemoDestination uses ui.home.adaptive, so a change to ui.home.adaptive can break ui.home.adaptive.AdaptiveDemoDestination, while a change to ui.home.adaptive.AdaptiveDemoDestination can't break ui.home.adaptive.
- Position
- Below the diagonal: ui.home.adaptive.AdaptiveDemoDestination uses a module listed above it, which is the healthy direction.
37→23 ui.home.advancelists.ShimmerAnimationType uses ui.home.advancelists✕
- Connections
- 4 pairs of types, where a type in ui.home.advancelists.ShimmerAnimationType uses a type in ui.home.advancelists.
- The types involved
com.guru.composecookbook.ui.home.advancelists.ShimmerAnimationType.FADE→com.guru.composecookbook.ui.home.advancelists.ShimmerAnimationTypecom.guru.composecookbook.ui.home.advancelists.ShimmerAnimationType.FADETRANSLATE→com.guru.composecookbook.ui.home.advancelists.ShimmerAnimationTypecom.guru.composecookbook.ui.home.advancelists.ShimmerAnimationType.TRANSLATE→com.guru.composecookbook.ui.home.advancelists.ShimmerAnimationTypecom.guru.composecookbook.ui.home.advancelists.ShimmerAnimationType.VERTICAL→com.guru.composecookbook.ui.home.advancelists.ShimmerAnimationType
- Direction
- ui.home.advancelists.ShimmerAnimationType uses ui.home.advancelists, so a change to ui.home.advancelists can break ui.home.advancelists.ShimmerAnimationType, while a change to ui.home.advancelists.ShimmerAnimationType can't break ui.home.advancelists.
- Position
- Below the diagonal: ui.home.advancelists.ShimmerAnimationType uses a module listed above it, which is the healthy direction.
38→25 ui.home.customfling.FlingListViewTypes uses ui.home.customfling✕
- Connections
- 3 pairs of types, where a type in ui.home.customfling.FlingListViewTypes uses a type in ui.home.customfling.
- The types involved
com.guru.composecookbook.ui.home.customfling.FlingListViewTypes.CUSTOM→com.guru.composecookbook.ui.home.customfling.FlingListViewTypescom.guru.composecookbook.ui.home.customfling.FlingListViewTypes.NATIVE→com.guru.composecookbook.ui.home.customfling.FlingListViewTypescom.guru.composecookbook.ui.home.customfling.FlingListViewTypes.SMOOTH→com.guru.composecookbook.ui.home.customfling.FlingListViewTypes
- Direction
- ui.home.customfling.FlingListViewTypes uses ui.home.customfling, so a change to ui.home.customfling can break ui.home.customfling.FlingListViewTypes, while a change to ui.home.customfling.FlingListViewTypes can't break ui.home.customfling.
- Position
- Below the diagonal: ui.home.customfling.FlingListViewTypes uses a module listed above it, which is the healthy direction.
39→25 ui.home.customfling.FlingStateStore uses ui.home.customfling✕
- Connections
- 1 pair of types, where a type in ui.home.customfling.FlingStateStore uses a type in ui.home.customfling.
- The types involved
com.guru.composecookbook.ui.home.customfling.FlingStateStore.Companion→com.guru.composecookbook.ui.home.customfling.FlingStateStore
- Direction
- ui.home.customfling.FlingStateStore uses ui.home.customfling, so a change to ui.home.customfling can break ui.home.customfling.FlingStateStore, while a change to ui.home.customfling.FlingStateStore can't break ui.home.customfling.
- Position
- Below the diagonal: ui.home.customfling.FlingStateStore uses a module listed above it, which is the healthy direction.
40→28 ui.home.lists.ListViewType uses ui.home.lists✕
- Connections
- 4 pairs of types, where a type in ui.home.lists.ListViewType uses a type in ui.home.lists.
- The types involved
com.guru.composecookbook.ui.home.lists.ListViewType.GRID→com.guru.composecookbook.ui.home.lists.ListViewTypecom.guru.composecookbook.ui.home.lists.ListViewType.HORIZONTAL→com.guru.composecookbook.ui.home.lists.ListViewTypecom.guru.composecookbook.ui.home.lists.ListViewType.MIX→com.guru.composecookbook.ui.home.lists.ListViewTypecom.guru.composecookbook.ui.home.lists.ListViewType.VERTICAL→com.guru.composecookbook.ui.home.lists.ListViewType
- Direction
- ui.home.lists.ListViewType uses ui.home.lists, so a change to ui.home.lists can break ui.home.lists.ListViewType, while a change to ui.home.lists.ListViewType can't break ui.home.lists.
- Position
- Below the diagonal: ui.home.lists.ListViewType 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 — Domain Modelling
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 22 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 4 | Medium |
| A07:2025 — Authentication Failures | 2 | High / Critical |
Roadmap
Top priorities: Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md; Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts; 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.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. | +6.0 pts | Low | Documentation Quality |
| Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts. | +6.0 pts | Low | ADR Quality |
| 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. | +5.4 pts | Medium | Architecture documentation |
| Resolve the 1 Off-boarding risk finding(s) in Bus Factor. | +2.6 pts | Low | Bus Factor |
| Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs. | +4.8 pts | Medium | Strongly-typed ids |
| Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services. | +4.8 pts | Medium | Rich vs anemic model |
| Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure. | +4.8 pts | Medium | Constructible invalid state |
| Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters). | +3.3 pts | Medium | Encapsulated state |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 3.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Secrets (history): REDACTED: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| app/src/main/java/com/guru/composecookbook/ui/animation/AnimateAsStateAnimations.kt | 6.0 | Mixed | Explicit Debt: TodoComment |
| app/src/main/java/com/guru/composecookbook/ui/learnwidgets/TextInputs.kt | 6.7 | Mixed | Explicit Debt: TodoComment |
| app/src/main/java/com/guru/composecookbook/ui/home/advancelists/AdvanceListsActivity.kt | 7.0 | Mixed | Code Duplication: Edited copy of a member (17 corresponding lines) |
| app/src/main/java/com/guru/composecookbook/ui/home/dialogs/DialogsActivity.kt | 7.0 | Mixed | Code Duplication: Duplicated block (8 lines × 2) |
| app/src/main/java/com/guru/composecookbook/MainActivity.kt | 7.1 | Mixed | Code Duplication: Near-duplicate member pair (94 shared lines) |
| app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt | 7.2 | Mixed | Cyclomatic Complexity: SettingsPageKt.BuildEditTexts (cyclomatic 31) |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/ListTypeConverter.kt | 7.4 | Mixed | Code Duplication: Edited copy of a member (14 corresponding lines) |
| app/src/main/java/com/guru/composecookbook/ui/home/tabslayout/TabLayout.kt | 7.8 | Mixed | Code Duplication: Edited copy of a member (38 corresponding lines) |
| app/src/main/java/com/guru/composecookbook/ui/home/customfling/VerticalFlingerListItem.kt | 7.8 | Mixed | Code Duplication: Edited copy of a member (19 corresponding lines) |
| demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/repositories/MoviesLaneRepositoryImpl.kt | 7.8 | Mixed | Code Duplication: Members sharing a duplicated core (5 members, 50+ identical tokens) |
| demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageScreen.kt | 7.8 | Mixed | Code Duplication: Edited copy of a member (29 corresponding lines) |
| theme/src/main/java/com/guru/composecookbook/theme/modifiers/ModifierExtentions.kt | 8.2 | Near-clean | Explicit Debt: TodoComment |
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.8, 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, 104 of 119 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
- D8 Code Coverage — 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. Coverage NOT MEASURED: test source is present (.kt) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo.
- D11 Test Reliability — 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. Test source is present (.kt) and this repository declares a JVM test suite (repository root, Gradle), but it was not re-run: the analyzer environment could not run it. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
- 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 425 artifact(s) across its subprojects (167 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.
- 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 — 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. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these 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.
- D32 Data Compliance (PII/GDPR) — 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. `app/src/main/java/com/guru/composecookbook/ui/home/HomeScreen.kt`, `demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/home/SearchLayout.kt` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
- D34 Knowledge Freshness — 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. File-level freshness contradicts repo activity: 83 commits in the last 90 days, yet 99 of 129 significant files carry no living knowledge. Those two readings cannot both be true, so the per-file recency signal is treated as unreliable here and freshness is not scored for this run.
- 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.
- AXR1 Runtime accessibility — 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. Boot via AndroidApp (app). the Android app did not build — `./gradlew :app:assembleDebug` exited 1: josephmj:flinger:1.0.5. > Could not get resource 'https://jitpack.io/com/github/iamjosephmj/flinger/1.0.5/flinger-1.0.5.pom'. > Could not GET 'https://jitpack.io/com/github/…; runtime evidence skipped (launch chosen because app/build.gradle.kts applies the Android application plugin and gradlew builds it).
- 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.
- DM8 Value-object opportunities — 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 finds primitive parameters that travel together through several signatures of the domain (a missing value object). Its deterministic rule has not yet shown 95 % precision on adjudicated rows, so the clumps it finds are counted here and not published as findings, and the card carries no score. That is a limit of the analyzer, not a finding about your code.
- DM9 Scattered domain decisions — 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 measured — scattered-decision detection needs expression-level symbol resolution: a comparison operand bound to the member it judges (arm one) and a construction bound to the type it produces (arm two). A Roslyn compilation carries both; arm two alone also runs on any frontend that declares whether a construction is produced or passed, and this target loaded neither.
- 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.
- 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.
- D13 REDACTED Scanning: REDACTED 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.
- D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
- 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.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- 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").
- 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.
- DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
- 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
2 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was SettingsPageKt.BuildEditTexts at 31. 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 HomeScreenKt.homeItemClicked at 20 — 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/guru/composecookbook/ui/home/HomeScreen.kt (HomeScreenKt.homeItemClicked at 20). 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 2 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with SettingsPageKt.BuildEditTexts (cyclomatic 31), AnimateAsStateAnimationsKt.DrawLayerWithAnimateAsStateAnimations (cyclomatic 28). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cyclomatic Complexity from 9.1 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
D2 · Cognitive Complexity
3 method(s) exceeded the cognitive complexity threshold of 15; the worst was AnimateAsStateAnimationsKt.DrawLayerWithAnimateAsStateAnimations at 54.
What to do
- Bring the 1 body over 30 down to 30 or less in Cognitive Complexity — start with AnimateAsStateAnimationsKt.DrawLayerWithAnimateAsStateAnimations (cognitive 54). — Refactoring it lifts Cognitive Complexity from 8.4 to about 9.0/10.
D3 · God Classes
5 over-large unit(s) detected — types, modules or files that carry too much.
What to do
- Resolve the 5 MethodTooLong finding(s) in God Classes — start with SettingsPage.kt, LoginScreen.kt, PaymentCard.kt. — One of this dimension's main actionable groups (5 warning-level).
D4 · Code Duplication
26 duplicated block group(s) detected. A further 19 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 14 of the 45 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
What to do
- Resolve the 4 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with TextInputs.kt, BottomScrollingContent.kt, ListItemDivider.kt. — One of this dimension's main actionable groups (4 warning-level).
- Resolve the 3 Duplicated block (19 lines × 2) finding(s) in Code Duplication — start with MainActivity.kt (3). — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 3 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with SettingsPage.kt, SearchBars.kt, ListTypeConverter.kt. — One of this dimension's main actionable groups (3 warning-level).
D5 · Coupling
13 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; 5 module(s) off the main sequence, with abstractness counted on 12 of the 13 (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).
What to do
- Resolve the 5 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (5 warning-level).
D6 · Cohesion (LCOM4)
0 of 13 classes have LCOM4 above 3.
D13 · REDACTED Scanning
REDACTED scan ran and found no leaked secrets.
D14 · License Compliance
0 of 43 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 36 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. 14 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. 1 of them resolve to no licence at all on Central, even through their parent POMs; that is missing data, not a violation, and none of them is charged. A further 60 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.
D16 · Bus Factor
27 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/home/GmailHome.kt. Counted over 128 of the 370 production source files in this repository: 241 are under the ~2,400-byte size floor this dimension measures over, and the remaining 1 have no attributable history left to measure.
What to do
- Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
D17 · Explicit Debt
10 deducted task-comment markers across 24194 LoC (0.0/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 10 TodoComment finding(s) in Explicit Debt — start with ModifierExtentions.kt, TiktokActivity.kt, TrendingViewModel.kt. — One of this dimension's main actionable groups (10 warning-level).
D19 · Documentation Quality
0 of 1 documentation facets pass in full; short on: F2 example. 2 document(s) read across 1 unit(s).
What to do
- Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
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).
D26 · Project Cohesion
1 of 13 build units (Gradle) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
22 finding(s): 0 critical, 21 high, 1 medium, 0 low. 19 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 74, line 180) — 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 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- No action in Static Analysis (SAST) — all 19 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 (19 issue-level, 0 of them charged here).
D35 · Change Coupling
Strongest change-coupling: AdvanceListsActivity.kt↔DialogsActivity.kt 50%; DialogsActivity.kt↔ListViewActivity.kt 50%
What to do
- Resolve the 2 Change coupling finding(s) in Change Coupling — start with AdvanceListsActivity.kt, DialogsActivity.kt. — One of this dimension's main actionable groups (2 warning-level).
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 4 platform declaration(s) and 104 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
DM11 · Constructible invalid state
- `Odd`'s public constructor takes `sportKey`, `sportName`, `commenceTime`, `bookmakerKey`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `Odd` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:8
- `Crypto`'s public constructor takes `symbol`, `price`, `name`, `image`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `Crypto` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/models/Crypto.kt:8
- `Genre`'s public constructor takes `name` as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `Genre` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Genre.kt:6
- `Movie`'s public constructor takes `title`, `name`, `poster_path`, `backdrop_path`, … as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a `Movie` that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a `Create` that can refuse. — demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Movie.kt:8
What to do
- Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
DM2 · Strongly-typed ids
- `Odd.sportKey` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:10
- `Odd.bookmakerKey` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:13
- `Odd.marketId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:16
What to do
- Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
DM4 · Rich vs anemic model
- `Odd` is an aggregate/entity with 15 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:8
- `Crypto` is an aggregate/entity with 12 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/models/Crypto.kt:8
- `Genre` is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Genre.kt:6
- `Movie` is an aggregate/entity with 18 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Movie.kt:8
What to do
- Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state
- `Movie` exposes publicly writable state (title, tagline, addedTime, dominantRgb). — demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Movie.kt:8
What to do
- Make entity setters private/init-only and hand collections out as IReadOnlyList/IReadOnlyCollection over a private backing field; change state only through methods that enforce the invariants (Marten/EF can bind via constructor or private setters).
DM7 · Repository granularity
M1 · Documentation (README)
What to do
- 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
P1 · CI/CD gates
P3 · Security & performance tooling
What to do
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
P6 · Release Hygiene
- No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
- Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
PF3 · Async & latency hygiene
X1 · Async correctness
X12 · Unreachable branch
X16 · Unfloored truncation loop
X21 · Side-effecting pattern guard
X27 · Collection changed while being enumerated
X3 · Exception handling
X5 · Nullable reference types
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 97% | Exemplary | Solid. |
| Architecture | 92% | Exemplary | Solid. |
| Maturity | 54% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 71% | Strong | Solid. |
| Security | 71% | Adequate — gated by D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Domain Modelling | 40% | Weak — gated by DM2, DM4, DM11 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
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 — 84 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: Dagger rejects, at compile time, a component that holds a binding with a narrower scope than its own.
- 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 — the Android app did not build — `./gradlew :app:assembleDebug` exited 1: josephmj:flinger:1.0.5. > Could not get resource 'https://jitpack.io/com/github/iamjosephmj/flinger/1.0.5/flinger-1.0.5.pom'. > Could not GET 'https://jitpack.io/com/github/…; runtime evidence skipped (launch chosen because app/build.gradle.kts applies the Android application plugin and gradlew builds it) This is a statement about this run, not a statement about your application: nothing here says the app is inaccessible, only that it was never run.
- 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 — ~1239 lines of test source are present (.kt) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
- D11 Test Reliability — Test reliability not included — the .kt suite was found but not re-run
- D12 Dependency Hygiene — Not scored — a Gradle build resolved 425 artifact(s) across its subprojects (167 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.
- 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.
- D21 Naming Consistency — D21 withholds its case and prefix conventions rows: 5 candidate(s) found and not reported.
- 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
- 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) — 2 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- D34 Knowledge Freshness — knowledge concentrated in recent work — freshness signal contradicted by repo activity
- 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
- D8 Code Coverage — Coverage not included — suite not readable by the collector
- DM1 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
- DM10 One transaction, one aggregate — no repository writes detected — no operation to judge against the one-aggregate rule
- DM12 Ambient inputs in the domain — no domain-layer types detected — ambient-input check not applicable
- DM3 Integration-event coupling — no integration events detected — coupling check not applicable
- DM6 Domain ↔ infrastructure boundary — no domain-layer types detected — domain↔infrastructure boundary check not applicable
- DM8 Value-object opportunities — not scored — the deterministic rule found 0 candidate clump(s); its rows are withheld until it has a measured precision of 95 % (a sample of fewer than 10 rows cannot show one)
- DM9 Scattered domain decisions — not measured — scattered-decision detection needs expression-level symbol resolution: a comparison operand bound to the member it judges (arm one) and a construction bound to the type it produces (arm two). A Roslyn compilation carries both; arm two alone also runs on any frontend that declares whether a construction is produced or passed, and this target loaded neither
- 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
- M4 Documentation accuracy — Not applicable: the 2 current-state document(s) make no claim of a kind M4 checks. 1 claim(s) of kinds M4 does not check were not checked (path 1); M4 checks only links and versions and artefact counts.
- 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 (19 module(s), 142 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.
- X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- 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
- X14 Bypassable address classification — 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
- X2 Cancellation propagation — no C# was loaded; this repository's Kotlin was read, and no request in it can be cancelled by a caller (Ktor, OkHttp's newCall or a URL stream, from a suspend function) — a Kotlin request outside a suspend function has no caller's cancellation to honour
- 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
- X28 Index access outside its own emptiness guard — 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 — 22 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
Serious — 83 finding(s)
- TodoComment theme/src/main/java/com/guru/composecookbook/theme/modifiers/ModifierExtentions.kt:64
- TodoComment demos/tiktok/src/main/java/com/guru/composecookbook/tiktok/TiktokActivity.kt:135
- TodoComment demos/moviesapp/app/src/main/java/com/guru/composecookbook/moviesapp/ui/trending/TrendingViewModel.kt:33
- TodoComment demos/moviesapp/app/src/main/java/com/guru/composecookbook/moviesapp/ui/home/components/MoviesHomeScreen.kt:34
- TodoComment components/carousel/src/main/java/com/guru/composecookbook/carousel/Pager.kt:57
- TodoComment app/src/main/java/com/guru/composecookbook/ui/learnwidgets/TextInputs.kt:33
- TodoComment app/src/main/java/com/guru/composecookbook/ui/home/HomeScreen.kt:256
- TodoComment app/src/main/java/com/guru/composecookbook/ui/home/lists/ListViewActivity.kt:165
- TodoComment app/src/main/java/com/guru/composecookbook/ui/home/advancelists/LoadingShimmerList.kt:3
- TodoComment app/src/main/java/com/guru/composecookbook/ui/animation/AnimateAsStateAnimations.kt:156
- MethodTooLong: SettingsPageKt.BuildEditTexts app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt:130
- MethodTooLong: LoginScreenKt.LoginScreen templates/login/src/main/java/com/guru/composecookbook/login/LoginScreen.kt:39
- MethodTooLong: PaymentCardKt.PaymentCard templates/paymentcard/src/main/java/com/guru/composecookbook/paymentcard/PaymentCard.kt:32
- MethodTooLong: TimerViewAnimationKt.TimerViewAnimation app/src/main/java/com/guru/composecookbook/ui/home/timer/TimerViewAnimation.kt:46
- MethodTooLong: AnimateAsStateAnimationsKt.DrawLayerWithAnimateAsStateAnimations app/src/main/java/com/guru/composecookbook/ui/animation/AnimateAsStateAnimations.kt:185
- Off the main sequence: ComposeCookBook:animations:lottie
- Off the main sequence: ComposeCookBook:components:fab
- Off the main sequence: ComposeCookBook:components:verticalgrid
- Off the main sequence: ComposeCookBook:theme
- Off the main sequence: ComposeCookBook:data
- Duplicated block (6 lines × 2) app/src/main/java/com/guru/composecookbook/ui/learnwidgets/TextInputs.kt:61
- Duplicated block (6 lines × 2) templates/profile/src/main/java/com/guru/composecookbook/profile/BottomScrollingContent.kt:24
- Duplicated block (6 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/customfling/ListItemDivider.kt:12
- Duplicated block (6 lines × 2) demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/ListTypeConverter.kt:12
- Constructible in an invalid state: Odd demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:8
- Constructible in an invalid state: Crypto demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/models/Crypto.kt:8
- Constructible in an invalid state: Genre demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Genre.kt:6
- Constructible in an invalid state: Movie demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Movie.kt:8
- Anemic entity: Odd demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:8
- Anemic entity: Crypto demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/models/Crypto.kt:8
- Anemic entity: Genre demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Genre.kt:6
- Anemic entity: Movie demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Movie.kt:8
- Duplicated block (19 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt:207
- Duplicated block (19 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt:227
- Duplicated block (19 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt:264
- Duplicated block (12 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt:91
- Duplicated block (12 lines × 2) app/src/main/java/com/guru/composecookbook/ui/learnwidgets/SearchBars.kt:32
- Duplicated block (12 lines × 2) demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/ListTypeConverter.kt:26
- Duplicated block (8 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/dialogs/DialogsActivity.kt:217
- Duplicated block (8 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/motionlayout/MotionLayoutDemo.kt:171
- Duplicated block (8 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/dialogs/BottomSheetLayouts.kt:122
- Change coupling: AdvanceListsActivity.kt ↔ DialogsActivity.kt app/src/main/java/com/guru/composecookbook/ui/home/advancelists/AdvanceListsActivity.kt:1
- Change coupling: DialogsActivity.kt ↔ ListViewActivity.kt app/src/main/java/com/guru/composecookbook/ui/home/dialogs/DialogsActivity.kt:1
- Edited copy of a member (17 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/advancelists/Shimmer.kt:140
- Edited copy of a member (17 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/advancelists/AdvanceListsActivity.kt:45
- Duplicated block (9 lines × 2) app/src/main/java/com/guru/composecookbook/ui/animation/AnimateAsStateAnimations.kt:225
- Duplicated block (9 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/advancelists/AnimatedLists.kt:101
- Edited copy of a member (10 corresponding lines) demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/repositories/MovieRepositoryImpl.kt:22
- Edited copy of a member (10 corresponding lines) demos/twitter/src/main/java/com/guru/composecookbook/twitter/TwitterActivity.kt:44
- SettingsPageKt.BuildEditTexts (cyclomatic 31) app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt:130
- AnimateAsStateAnimationsKt.DrawLayerWithAnimateAsStateAnimations (cyclomatic 28) app/src/main/java/com/guru/composecookbook/ui/animation/AnimateAsStateAnimations.kt:185
- AnimateAsStateAnimationsKt.DrawLayerWithAnimateAsStateAnimations (cognitive 54) app/src/main/java/com/guru/composecookbook/ui/animation/AnimateAsStateAnimations.kt:185
- MaterialThemeKt.ComposeCookBookMaterial3Theme (cognitive 21) theme/src/main/java/com/guru/composecookbook/theme/MaterialTheme.kt:159
- ThemeKt.ComposeCookBookTheme (cognitive 17) theme/src/main/java/com/guru/composecookbook/theme/Theme.kt:130
- REDACTED
- REDACTED
- Near-duplicate member pair (94 shared lines) app/src/main/java/com/guru/composecookbook/MainActivity.kt:203
- Edited copy of a member (57 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/constraintlayout/ConstraintLayoutDemos.kt:55
- Edited copy of a member (33 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/lists/GridListItem.kt:28
- Edited copy of a member (38 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/tabslayout/TabLayout.kt:140
- Edited copy of a member (19 corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/customfling/VerticalFlingerListItem.kt:25
- Edited copies of one member (3 members, 25+ corresponding lines) app/src/main/java/com/guru/composecookbook/ui/home/customfling/FlingListActivity.kt:136
- Edited copy of a member (18 corresponding lines) app/src/main/java/com/guru/composecookbook/theme/SystemUI.kt:50
- Edited copies of one member (3 members, 16+ corresponding lines) components/carousel/src/main/java/com/guru/composecookbook/carousel/CarouselLayout.kt:118
- Edited copy of a member (8 corresponding lines) components/carousel/src/main/java/com/guru/composecookbook/carousel/CarouselDot.kt:19
- Duplicated block (31 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/tabslayout/TabLayout.kt:141
- Duplicated block (21 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt:284
- Duplicated block (16 lines × 10) app/src/main/java/com/guru/composecookbook/ui/home/customfling/SettingsPage.kt:185
- Duplicated block (16 lines × 2) app/src/main/java/com/guru/composecookbook/MainActivity.kt:247
- Duplicated block (13 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/customfling/VerticalFlingerListItem.kt:31
- Duplicated block (11 lines × 2) app/src/main/java/com/guru/composecookbook/ui/home/clock/ClockView.kt:72
- Duplicated block (7–9 lines × 4) app/src/main/java/com/guru/composecookbook/ui/home/timer/TimerDemo.kt:73
- Members sharing a duplicated core (5 members, 50+ identical tokens) demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/repositories/MoviesLaneRepositoryImpl.kt:14
- Edited copy of a member (24 corresponding lines) demos/moviesapp/app/src/main/java/com/guru/composecookbook/moviesapp/ui/home/MoviesHomeActivity.kt:114
- Edited copy of a member (29 corresponding lines) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageScreen.kt:21
- Edited copy of a member (14 corresponding lines) demos/cryptoapp/data/src/main/java/com/guru/composecookbook/cryptoapp/data/db/ListTypeConverter.kt:9
- Edited copy of a member (11 corresponding lines) demos/instagram/src/main/java/com/guru/composecookbook/instagram/InstagramActivity.kt:44
- Edited copies of one member (5 members, 5+ corresponding lines) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/GmailActivity.kt:19
- Duplicated block (10–12 lines × 2) demos/moviesapp/app/src/main/java/com/guru/composecookbook/moviesapp/ui/details/components/MovieDetailContent.kt:103
- Duplicated block (9–10 lines × 2) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageBody.kt:30
- Duplicated block (10 lines × 2) demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/create/CreateMessageScreen.kt:28
- Duplicated block (8 lines × 5) demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/repositories/MoviesLaneRepositoryImpl.kt:16
- Mutable entity: Movie demos/moviesapp/data/src/main/java/com/guru/composecookbook/moviesapp/data/db/models/Movie.kt:8
Minor — 14 finding(s)
- Primitive id on a domain type: Odd.sportKey demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:10
- Primitive id on a domain type: Odd.bookmakerKey demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:13
- Primitive id on a domain type: Odd.marketId demos/betty/app/src/main/java/com/adwi/betty/data/local/entity/Odd.kt:16
- Off-boarding risk: anonymized user #1
- Documentation: no build, run or usage example README.md:1
- No ADRs found app/build.gradle.kts:4
- Projects may be oversized for their cohesion
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- No ADRs
- No architecture diagram/doc
- No changelog
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-b1e0ca40857a446f87973c17d9b2a6cb/history.json --exit-code 0 --source . | 2 | 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-b1e0ca40857a446f87973c17d9b2a6cb/tree.json --exit-code 0 --source . | 1 | 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 . | 22 | 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. semgrep could not parse 2 file(s) — `app/src/main/java/com/guru/composecookbook/ui/home/HomeScreen.kt`, `demos/gmail/src/main/java/com/guru/composecookbook/gmail/ui/home/SearchLayout.kt` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 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 | — |