Executive summary
brewkits/Grant scores 55 out of 100 and is rated Adequate, while four of its six lenses score higher still: Performance at 100 and Architecture at 95, both rated Exemplary, Code Health at 79, rated Strong, and Security and Compliance at 73, rated Adequate.
The score is lower than those four because the weakest lens counts most, and here that is Production Readiness, which scores 44 and is rated Weak. Its Observability dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to reconcile the README with reality: grant-core/README.md links to `../docs/advanced/testing.md`, but `docs/advanced/testing.md` does not exist; .github/workflows/README.md documents the environment variable `MAVEN_USERNAME`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `MAVEN_PASSWORD`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `SIGNING_KEY`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `CODECOV_TOKEN`, but no code, script or configuration file names it and to resolve the 1 Off-boarding risk finding(s) in Bus Factor, and if Production Readiness rose to 70, the score would rise from 55 to about 62.
54 findings are critical: 46 in Static Analysis (SAST), six in Dependency Vulnerabilities, one in Coupling and one in Project dependency cycles.
Watchdog couldn't measure 13 dimensions in this code, among them Code Coverage, Test Reliability and Dependency Hygiene, so they are left out of the score. The product code is 12,176 lines, which would take an estimated 0.2 person-years, around €29,000, to rebuild.
If Production Readiness rose from 44 to 70, the lowest score rated Strong, the score would rise from 55 to about 62.
New since the last survey: 6 findings
- Dependency Vulnerabilities · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
- Supply-chain Provenance & Signing · REDACTED
Fixed since the last survey: 2 findings
- Supply-chain Provenance & Signing REDACTED
- Supply-chain Provenance & Signing REDACTED
Rebuild cost: about €29,000 · Estimate
| Cost to rebuild | €9,600 to €48,000, for 161 to 510 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 55. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Small: 12,176 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture — module dependency graph
Architecture: which parts of the code depend on which
| uses → | 1 dev.brewkits.grant.GrantAndServiceHandler | 2 dev.brewkits.grant.GrantHandler | 3 dev.brewkits.grant.SharedPreferencesGrantStore | 4 dev.brewkits.grant.bluetooth | 5 dev.brewkits.grant.calendar | 6 dev.brewkits.grant.contacts | 7 dev.brewkits.grant.desktop.harness | 8 dev.brewkits.grant.di | 9 dev.brewkits.grant.impl.GrantRequestActivity | 10 dev.brewkits.grant.impl.SimpleGrantManager | 11 dev.brewkits.grant.utils.GrantLogger | 12 dev.brewkits.grant.GrantHandler.UiStrategy | 13 dev.brewkits.grant.delegates | 14 dev.brewkits.grant.impl.GrantRequestActivity.GrantResult | 15 dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode | 16 dev.brewkits.grant.utils | 17 dev.brewkits.grant.utils.GrantLogger.LogLevel | 18 dev.brewkits.grant.handlers | 19 dev.brewkits.grant.handlers.AVPermissionHandler | 20 dev.brewkits.grant.impl | 21 dev.brewkits.grant | 22 dev.brewkits.grant.impl.AndroidGrantLauncher | 23 com.yourapp.location | 24 dev.brewkits.grant.AppGrant | 25 dev.brewkits.grant.BluetoothReadyStatus | 26 dev.brewkits.grant.GrantFactory | 27 dev.brewkits.grant.GrantHandler.FlowState | 28 dev.brewkits.grant.GrantStatus | 29 dev.brewkits.grant.LocationReadyStatus | 30 dev.brewkits.grant.ServiceStatus | 31 dev.brewkits.grant.ServiceType | 32 dev.brewkits.grant.compose | 33 dev.brewkits.grant.desktop | 34 dev.brewkits.grant.testing | 35 dev.brewkits.grant.util | 36 com.yourapp.location.LocationFlowResult | 37 dev.brewkits.grant.compose.DialogKind | 38 dev.brewkits.grant.compose.ServiceDialogKind | 39 dev.brewkits.grant.desktop.AVMediaPermissionHandler | 40 dev.brewkits.grant.util.ValidationResult |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 dev.brewkits.grant.GrantAndServiceHandler | ||||||||||||||||||||||||||||||||||||||||
| 2 dev.brewkits.grant.GrantHandler | ||||||||||||||||||||||||||||||||||||||||
| 3 dev.brewkits.grant.SharedPreferencesGrantStore | ||||||||||||||||||||||||||||||||||||||||
| 4 dev.brewkits.grant.bluetooth | ||||||||||||||||||||||||||||||||||||||||
| 5 dev.brewkits.grant.calendar | ||||||||||||||||||||||||||||||||||||||||
| 6 dev.brewkits.grant.contacts | ||||||||||||||||||||||||||||||||||||||||
| 7 dev.brewkits.grant.desktop.harness | ||||||||||||||||||||||||||||||||||||||||
| 8 dev.brewkits.grant.di | ||||||||||||||||||||||||||||||||||||||||
| 9 dev.brewkits.grant.impl.GrantRequestActivity | ||||||||||||||||||||||||||||||||||||||||
| 10 dev.brewkits.grant.impl.SimpleGrantManager | ||||||||||||||||||||||||||||||||||||||||
| 11 dev.brewkits.grant.utils.GrantLogger | ||||||||||||||||||||||||||||||||||||||||
| 12 dev.brewkits.grant.GrantHandler.UiStrategy | 2 | |||||||||||||||||||||||||||||||||||||||
| 13 dev.brewkits.grant.delegates | 1 | |||||||||||||||||||||||||||||||||||||||
| 14 dev.brewkits.grant.impl.GrantRequestActivity.GrantResult | 4 | |||||||||||||||||||||||||||||||||||||||
| 15 dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode | 4 | |||||||||||||||||||||||||||||||||||||||
| 16 dev.brewkits.grant.utils | 1 | |||||||||||||||||||||||||||||||||||||||
| 17 dev.brewkits.grant.utils.GrantLogger.LogLevel | 4 | |||||||||||||||||||||||||||||||||||||||
| 18 dev.brewkits.grant.handlers | 4 | 16 | ||||||||||||||||||||||||||||||||||||||
| 19 dev.brewkits.grant.handlers.AVPermissionHandler | 1 | |||||||||||||||||||||||||||||||||||||||
| 20 dev.brewkits.grant.impl | 1 | 1 | 1 | 3 | 24 | |||||||||||||||||||||||||||||||||||
| 21 dev.brewkits.grant | 1 | 2 | 1 | |||||||||||||||||||||||||||||||||||||
| 22 dev.brewkits.grant.impl.AndroidGrantLauncher | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 com.yourapp.location | 2 | |||||||||||||||||||||||||||||||||||||||
| 24 dev.brewkits.grant.AppGrant | 24 | |||||||||||||||||||||||||||||||||||||||
| 25 dev.brewkits.grant.BluetoothReadyStatus | 7 | |||||||||||||||||||||||||||||||||||||||
| 26 dev.brewkits.grant.GrantFactory | 4 | 4 | ||||||||||||||||||||||||||||||||||||||
| 27 dev.brewkits.grant.GrantHandler.FlowState | 3 | 1 | ||||||||||||||||||||||||||||||||||||||
| 28 dev.brewkits.grant.GrantStatus | 6 | |||||||||||||||||||||||||||||||||||||||
| 29 dev.brewkits.grant.LocationReadyStatus | 7 | |||||||||||||||||||||||||||||||||||||||
| 30 dev.brewkits.grant.ServiceStatus | 4 | |||||||||||||||||||||||||||||||||||||||
| 31 dev.brewkits.grant.ServiceType | 6 | |||||||||||||||||||||||||||||||||||||||
| 32 dev.brewkits.grant.compose | 8 | |||||||||||||||||||||||||||||||||||||||
| 33 dev.brewkits.grant.desktop | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 34 dev.brewkits.grant.testing | 14 | |||||||||||||||||||||||||||||||||||||||
| 35 dev.brewkits.grant.util | 1 | |||||||||||||||||||||||||||||||||||||||
| 36 com.yourapp.location.LocationFlowResult | 4 | |||||||||||||||||||||||||||||||||||||||
| 37 dev.brewkits.grant.compose.DialogKind | 3 | |||||||||||||||||||||||||||||||||||||||
| 38 dev.brewkits.grant.compose.ServiceDialogKind | 4 | |||||||||||||||||||||||||||||||||||||||
| 39 dev.brewkits.grant.desktop.AVMediaPermissionHandler | 2 | |||||||||||||||||||||||||||||||||||||||
| 40 dev.brewkits.grant.util.ValidationResult | 2 |
12→2 dev.brewkits.grant.GrantHandler.UiStrategy uses dev.brewkits.grant.GrantHandler✕
- Connections
- 2 pairs of types, where a type in dev.brewkits.grant.GrantHandler.UiStrategy uses a type in dev.brewkits.grant.GrantHandler.
- The types involved
dev.brewkits.grant.GrantHandler.UiStrategy.CustomUi→dev.brewkits.grant.GrantHandler.UiStrategydev.brewkits.grant.GrantHandler.UiStrategy.StateBased→dev.brewkits.grant.GrantHandler.UiStrategy
- Direction
- dev.brewkits.grant.GrantHandler.UiStrategy uses dev.brewkits.grant.GrantHandler, so a change to dev.brewkits.grant.GrantHandler can break dev.brewkits.grant.GrantHandler.UiStrategy, while a change to dev.brewkits.grant.GrantHandler.UiStrategy can't break dev.brewkits.grant.GrantHandler.
- Position
- Below the diagonal: dev.brewkits.grant.GrantHandler.UiStrategy uses a module listed above it, which is the healthy direction.
13→21 dev.brewkits.grant.delegates uses dev.brewkits.grant part of a loop✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.delegates uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.delegates.BluetoothManagerDelegate→dev.brewkits.grant.GrantStatus
- Direction
- dev.brewkits.grant.delegates uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.delegates, while a change to dev.brewkits.grant.delegates can't break dev.brewkits.grant.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→9 dev.brewkits.grant.impl.GrantRequestActivity.GrantResult uses dev.brewkits.grant.impl.GrantRequestActivity✕
- Connections
- 4 pairs of types, where a type in dev.brewkits.grant.impl.GrantRequestActivity.GrantResult uses a type in dev.brewkits.grant.impl.GrantRequestActivity.
- The types involved
dev.brewkits.grant.impl.GrantRequestActivity.GrantResult.DENIED→dev.brewkits.grant.impl.GrantRequestActivity.GrantResultdev.brewkits.grant.impl.GrantRequestActivity.GrantResult.DENIED_PERMANENTLY→dev.brewkits.grant.impl.GrantRequestActivity.GrantResultdev.brewkits.grant.impl.GrantRequestActivity.GrantResult.ERROR→dev.brewkits.grant.impl.GrantRequestActivity.GrantResultdev.brewkits.grant.impl.GrantRequestActivity.GrantResult.GRANTED→dev.brewkits.grant.impl.GrantRequestActivity.GrantResult
- Direction
- dev.brewkits.grant.impl.GrantRequestActivity.GrantResult uses dev.brewkits.grant.impl.GrantRequestActivity, so a change to dev.brewkits.grant.impl.GrantRequestActivity can break dev.brewkits.grant.impl.GrantRequestActivity.GrantResult, while a change to dev.brewkits.grant.impl.GrantRequestActivity.GrantResult can't break dev.brewkits.grant.impl.GrantRequestActivity.
- Position
- Below the diagonal: dev.brewkits.grant.impl.GrantRequestActivity.GrantResult uses a module listed above it, which is the healthy direction.
15→10 dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode uses dev.brewkits.grant.impl.SimpleGrantManager✕
- Connections
- 4 pairs of types, where a type in dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode uses a type in dev.brewkits.grant.impl.SimpleGrantManager.
- The types involved
dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode.ALWAYS_DENY→dev.brewkits.grant.impl.SimpleGrantManager.SimulationModedev.brewkits.grant.impl.SimpleGrantManager.SimulationMode.ALWAYS_DENY_PERMANENTLY→dev.brewkits.grant.impl.SimpleGrantManager.SimulationModedev.brewkits.grant.impl.SimpleGrantManager.SimulationMode.AUTO_GRANT→dev.brewkits.grant.impl.SimpleGrantManager.SimulationModedev.brewkits.grant.impl.SimpleGrantManager.SimulationMode.REALISTIC→dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode
- Direction
- dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode uses dev.brewkits.grant.impl.SimpleGrantManager, so a change to dev.brewkits.grant.impl.SimpleGrantManager can break dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode, while a change to dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode can't break dev.brewkits.grant.impl.SimpleGrantManager.
- Position
- Below the diagonal: dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode uses a module listed above it, which is the healthy direction.
16→11 dev.brewkits.grant.utils uses dev.brewkits.grant.utils.GrantLogger✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.utils uses a type in dev.brewkits.grant.utils.GrantLogger.
- The types involved
dev.brewkits.grant.utils.GrantLogger→dev.brewkits.grant.utils.GrantLogger.LogLevel
- Direction
- dev.brewkits.grant.utils uses dev.brewkits.grant.utils.GrantLogger, so a change to dev.brewkits.grant.utils.GrantLogger can break dev.brewkits.grant.utils, while a change to dev.brewkits.grant.utils can't break dev.brewkits.grant.utils.GrantLogger.
- Position
- Below the diagonal: dev.brewkits.grant.utils uses a module listed above it, which is the healthy direction.
17→11 dev.brewkits.grant.utils.GrantLogger.LogLevel uses dev.brewkits.grant.utils.GrantLogger✕
- Connections
- 4 pairs of types, where a type in dev.brewkits.grant.utils.GrantLogger.LogLevel uses a type in dev.brewkits.grant.utils.GrantLogger.
- The types involved
dev.brewkits.grant.utils.GrantLogger.LogLevel.DEBUG→dev.brewkits.grant.utils.GrantLogger.LogLeveldev.brewkits.grant.utils.GrantLogger.LogLevel.ERROR→dev.brewkits.grant.utils.GrantLogger.LogLeveldev.brewkits.grant.utils.GrantLogger.LogLevel.INFO→dev.brewkits.grant.utils.GrantLogger.LogLeveldev.brewkits.grant.utils.GrantLogger.LogLevel.WARNING→dev.brewkits.grant.utils.GrantLogger.LogLevel
- Direction
- dev.brewkits.grant.utils.GrantLogger.LogLevel uses dev.brewkits.grant.utils.GrantLogger, so a change to dev.brewkits.grant.utils.GrantLogger can break dev.brewkits.grant.utils.GrantLogger.LogLevel, while a change to dev.brewkits.grant.utils.GrantLogger.LogLevel can't break dev.brewkits.grant.utils.GrantLogger.
- Position
- Below the diagonal: dev.brewkits.grant.utils.GrantLogger.LogLevel uses a module listed above it, which is the healthy direction.
18→13 dev.brewkits.grant.handlers uses dev.brewkits.grant.delegates✕
- Connections
- 4 pairs of types, where a type in dev.brewkits.grant.handlers uses a type in dev.brewkits.grant.delegates.
- The types involved
dev.brewkits.grant.handlers.BluetoothPermissionHandler→dev.brewkits.grant.delegates.BluetoothManagerDelegatedev.brewkits.grant.handlers.LocationAlwaysPermissionHandler→dev.brewkits.grant.delegates.LocationAlwaysManagerDelegatedev.brewkits.grant.handlers.LocationPermissionHandler→dev.brewkits.grant.delegates.LocationManagerDelegatedev.brewkits.grant.handlers.LocationTemporaryFullAccuracyHandler→dev.brewkits.grant.delegates.LocationManagerDelegate
- Direction
- dev.brewkits.grant.handlers uses dev.brewkits.grant.delegates, so a change to dev.brewkits.grant.delegates can break dev.brewkits.grant.handlers, while a change to dev.brewkits.grant.handlers can't break dev.brewkits.grant.delegates.
- Position
- Below the diagonal: dev.brewkits.grant.handlers uses a module listed above it, which is the healthy direction.
18→21 dev.brewkits.grant.handlers uses dev.brewkits.grant part of a loop✕
- Connections
- 16 pairs of types, where a type in dev.brewkits.grant.handlers uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.handlers.AVPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.BluetoothPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.CalendarPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.ContactsPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.DesktopPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.LocationAlwaysPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.LocationAlwaysPermissionHandlerKt→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.LocationPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.LocationPermissionHandlerKt→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.LocationTemporaryFullAccuracyHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.MotionPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.NotificationPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.NotificationPermissionHandlerKt→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.PermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.PhotoPermissionHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.handlers.TrackingPermissionHandler→dev.brewkits.grant.GrantStatus
- Direction
- dev.brewkits.grant.handlers uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.handlers, while a change to dev.brewkits.grant.handlers can't break dev.brewkits.grant.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→18 dev.brewkits.grant.handlers.AVPermissionHandler uses dev.brewkits.grant.handlers✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.handlers.AVPermissionHandler uses a type in dev.brewkits.grant.handlers.
- The types involved
dev.brewkits.grant.handlers.AVPermissionHandler.Companion→dev.brewkits.grant.handlers.AVPermissionHandler
- Direction
- dev.brewkits.grant.handlers.AVPermissionHandler uses dev.brewkits.grant.handlers, so a change to dev.brewkits.grant.handlers can break dev.brewkits.grant.handlers.AVPermissionHandler, while a change to dev.brewkits.grant.handlers.AVPermissionHandler can't break dev.brewkits.grant.handlers.
- Position
- Below the diagonal: dev.brewkits.grant.handlers.AVPermissionHandler uses a module listed above it, which is the healthy direction.
20→9 dev.brewkits.grant.impl uses dev.brewkits.grant.impl.GrantRequestActivity✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.impl uses a type in dev.brewkits.grant.impl.GrantRequestActivity.
- The types involved
dev.brewkits.grant.impl.GrantRequestActivity→dev.brewkits.grant.impl.GrantRequestActivity.GrantResult
- Direction
- dev.brewkits.grant.impl uses dev.brewkits.grant.impl.GrantRequestActivity, so a change to dev.brewkits.grant.impl.GrantRequestActivity can break dev.brewkits.grant.impl, while a change to dev.brewkits.grant.impl can't break dev.brewkits.grant.impl.GrantRequestActivity.
- Position
- Below the diagonal: dev.brewkits.grant.impl uses a module listed above it, which is the healthy direction.
20→10 dev.brewkits.grant.impl uses dev.brewkits.grant.impl.SimpleGrantManager✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.impl uses a type in dev.brewkits.grant.impl.SimpleGrantManager.
- The types involved
dev.brewkits.grant.impl.SimpleGrantManager→dev.brewkits.grant.impl.SimpleGrantManager.SimulationMode
- Direction
- dev.brewkits.grant.impl uses dev.brewkits.grant.impl.SimpleGrantManager, so a change to dev.brewkits.grant.impl.SimpleGrantManager can break dev.brewkits.grant.impl, while a change to dev.brewkits.grant.impl can't break dev.brewkits.grant.impl.SimpleGrantManager.
- Position
- Below the diagonal: dev.brewkits.grant.impl uses a module listed above it, which is the healthy direction.
20→16 dev.brewkits.grant.impl uses dev.brewkits.grant.utils✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.impl uses a type in dev.brewkits.grant.utils.
- The types involved
dev.brewkits.grant.impl.PlatformGrantDelegate→dev.brewkits.grant.utils.ReentrantMutex
- Direction
- dev.brewkits.grant.impl uses dev.brewkits.grant.utils, so a change to dev.brewkits.grant.utils can break dev.brewkits.grant.impl, while a change to dev.brewkits.grant.impl can't break dev.brewkits.grant.utils.
- Position
- Below the diagonal: dev.brewkits.grant.impl uses a module listed above it, which is the healthy direction.
20→18 dev.brewkits.grant.impl uses dev.brewkits.grant.handlers✕
- Connections
- 3 pairs of types, where a type in dev.brewkits.grant.impl uses a type in dev.brewkits.grant.handlers.
- The types involved
dev.brewkits.grant.impl.AlwaysGrantedHandler→dev.brewkits.grant.handlers.PermissionHandlerdev.brewkits.grant.impl.ExactAlarmHandler→dev.brewkits.grant.handlers.PermissionHandlerdev.brewkits.grant.impl.NotRegisteredHandler→dev.brewkits.grant.handlers.PermissionHandler
- Direction
- dev.brewkits.grant.impl uses dev.brewkits.grant.handlers, so a change to dev.brewkits.grant.handlers can break dev.brewkits.grant.impl, while a change to dev.brewkits.grant.impl can't break dev.brewkits.grant.handlers.
- Position
- Below the diagonal: dev.brewkits.grant.impl uses a module listed above it, which is the healthy direction.
20→21 dev.brewkits.grant.impl uses dev.brewkits.grant part of a loop✕
- Connections
- 24 pairs of types, where a type in dev.brewkits.grant.impl uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.impl.AlwaysGrantedHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.impl.AndroidGrantLauncher→dev.brewkits.grant.GrantLauncherdev.brewkits.grant.impl.DefaultGrantManager→dev.brewkits.grant.GrantLauncherdev.brewkits.grant.impl.DefaultGrantManager→dev.brewkits.grant.GrantManagerdev.brewkits.grant.impl.DefaultGrantManager→dev.brewkits.grant.GrantPermissiondev.brewkits.grant.impl.DefaultGrantManager→dev.brewkits.grant.GrantStatusdev.brewkits.grant.impl.ExactAlarmHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.impl.MyServiceManager→dev.brewkits.grant.ServiceManagerdev.brewkits.grant.impl.MyServiceManager→dev.brewkits.grant.ServiceStatusdev.brewkits.grant.impl.MyServiceManager→dev.brewkits.grant.ServiceTypedev.brewkits.grant.impl.NotRegisteredHandler→dev.brewkits.grant.GrantStatusdev.brewkits.grant.impl.PlatformGrantDelegate→dev.brewkits.grant.AppGrantdev.brewkits.grant.impl.PlatformGrantDelegate→dev.brewkits.grant.GrantLauncherdev.brewkits.grant.impl.PlatformGrantDelegate→dev.brewkits.grant.GrantPermissiondev.brewkits.grant.impl.PlatformGrantDelegate→dev.brewkits.grant.GrantStatusdev.brewkits.grant.impl.PlatformGrantDelegate→dev.brewkits.grant.GrantStoredev.brewkits.grant.impl.PlatformGrantDelegate→dev.brewkits.grant.RawPermissiondev.brewkits.grant.impl.PlatformServiceDelegate→dev.brewkits.grant.ServiceStatusdev.brewkits.grant.impl.PlatformServiceDelegate→dev.brewkits.grant.ServiceTypedev.brewkits.grant.impl.SimpleGrantManager→dev.brewkits.grant.AppGrantdev.brewkits.grant.impl.SimpleGrantManager→dev.brewkits.grant.GrantLauncherdev.brewkits.grant.impl.SimpleGrantManager→dev.brewkits.grant.GrantManagerdev.brewkits.grant.impl.SimpleGrantManager→dev.brewkits.grant.GrantPermissiondev.brewkits.grant.impl.SimpleGrantManager→dev.brewkits.grant.GrantStatus
- Direction
- dev.brewkits.grant.impl uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.impl, while a change to dev.brewkits.grant.impl can't break dev.brewkits.grant.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
21→2 dev.brewkits.grant uses dev.brewkits.grant.GrantHandler✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant uses a type in dev.brewkits.grant.GrantHandler.
- The types involved
dev.brewkits.grant.GrantHandler→dev.brewkits.grant.GrantHandler.UiStrategy
- Direction
- dev.brewkits.grant uses dev.brewkits.grant.GrantHandler, so a change to dev.brewkits.grant.GrantHandler can break dev.brewkits.grant, while a change to dev.brewkits.grant can't break dev.brewkits.grant.GrantHandler.
- Position
- Below the diagonal: dev.brewkits.grant uses a module listed above it, which is the healthy direction.
21→16 dev.brewkits.grant uses dev.brewkits.grant.utils✕
- Connections
- 2 pairs of types, where a type in dev.brewkits.grant uses a type in dev.brewkits.grant.utils.
- The types involved
dev.brewkits.grant.InMemoryGrantStore→dev.brewkits.grant.utils.PlatformLockdev.brewkits.grant.SharedPreferencesGrantStore→dev.brewkits.grant.utils.PlatformLock
- Direction
- dev.brewkits.grant uses dev.brewkits.grant.utils, so a change to dev.brewkits.grant.utils can break dev.brewkits.grant, while a change to dev.brewkits.grant can't break dev.brewkits.grant.utils.
- Position
- Below the diagonal: dev.brewkits.grant uses a module listed above it, which is the healthy direction.
21→20 dev.brewkits.grant uses dev.brewkits.grant.impl✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant uses a type in dev.brewkits.grant.impl.
- The types involved
dev.brewkits.grant.GrantFactoryKt→dev.brewkits.grant.impl.PlatformGrantDelegate
- Direction
- dev.brewkits.grant uses dev.brewkits.grant.impl, so a change to dev.brewkits.grant.impl can break dev.brewkits.grant, while a change to dev.brewkits.grant can't break dev.brewkits.grant.impl.
- Position
- Below the diagonal: dev.brewkits.grant uses a module listed above it, which is the healthy direction.
22→20 dev.brewkits.grant.impl.AndroidGrantLauncher uses dev.brewkits.grant.impl✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.impl.AndroidGrantLauncher uses a type in dev.brewkits.grant.impl.
- The types involved
dev.brewkits.grant.impl.AndroidGrantLauncher.Companion→dev.brewkits.grant.impl.AndroidGrantLauncher
- Direction
- dev.brewkits.grant.impl.AndroidGrantLauncher uses dev.brewkits.grant.impl, so a change to dev.brewkits.grant.impl can break dev.brewkits.grant.impl.AndroidGrantLauncher, while a change to dev.brewkits.grant.impl.AndroidGrantLauncher can't break dev.brewkits.grant.impl.
- Position
- Below the diagonal: dev.brewkits.grant.impl.AndroidGrantLauncher uses a module listed above it, which is the healthy direction.
23→21 com.yourapp.location uses dev.brewkits.grant✕
- Connections
- 2 pairs of types, where a type in com.yourapp.location uses a type in dev.brewkits.grant.
- The types involved
com.yourapp.location.LocationPermissionHelper→dev.brewkits.grant.GrantManagercom.yourapp.location.LocationPermissionHelper→dev.brewkits.grant.ServiceManager
- Direction
- com.yourapp.location uses dev.brewkits.grant, so a change to dev.brewkits.grant can break com.yourapp.location, while a change to com.yourapp.location can't break dev.brewkits.grant.
- Position
- Below the diagonal: com.yourapp.location uses a module listed above it, which is the healthy direction.
24→21 dev.brewkits.grant.AppGrant uses dev.brewkits.grant✕
- Connections
- 24 pairs of types, where a type in dev.brewkits.grant.AppGrant uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.AppGrant.APP_TRACKING→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.BLUETOOTH→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.BLUETOOTH_ADVERTISE→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.BLUETOOTH_CONNECT→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.BLUETOOTH_SCAN→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.CALENDAR→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.CAMERA→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.CONTACTS→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.GALLERY→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.GALLERY_ADD_ONLY→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.GALLERY_IMAGES_ONLY→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.GALLERY_VIDEO_ONLY→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.LOCAL_NETWORK→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.LOCATION→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.LOCATION_ALWAYS→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.MICROPHONE→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.MOTION→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.NEARBY_WIFI_DEVICES→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.NOTIFICATION→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.READ_CALENDAR→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.READ_CONTACTS→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.SCHEDULE_EXACT_ALARM→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.STORAGE→dev.brewkits.grant.AppGrantdev.brewkits.grant.AppGrant.USE_FULL_SCREEN_INTENT→dev.brewkits.grant.AppGrant
- Direction
- dev.brewkits.grant.AppGrant uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.AppGrant, while a change to dev.brewkits.grant.AppGrant can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.AppGrant uses a module listed above it, which is the healthy direction.
25→21 dev.brewkits.grant.BluetoothReadyStatus uses dev.brewkits.grant✕
- Connections
- 7 pairs of types, where a type in dev.brewkits.grant.BluetoothReadyStatus uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.BluetoothReadyStatus.BothRequired→dev.brewkits.grant.BluetoothReadyStatusdev.brewkits.grant.BluetoothReadyStatus.BothRequired→dev.brewkits.grant.GrantStatusdev.brewkits.grant.BluetoothReadyStatus.GrantDenied→dev.brewkits.grant.BluetoothReadyStatusdev.brewkits.grant.BluetoothReadyStatus.GrantDenied→dev.brewkits.grant.GrantStatusdev.brewkits.grant.BluetoothReadyStatus.Ready→dev.brewkits.grant.BluetoothReadyStatusdev.brewkits.grant.BluetoothReadyStatus.ServiceDisabled→dev.brewkits.grant.BluetoothReadyStatusdev.brewkits.grant.BluetoothReadyStatus.Unknown→dev.brewkits.grant.BluetoothReadyStatus
- Direction
- dev.brewkits.grant.BluetoothReadyStatus uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.BluetoothReadyStatus, while a change to dev.brewkits.grant.BluetoothReadyStatus can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.BluetoothReadyStatus uses a module listed above it, which is the healthy direction.
26→20 dev.brewkits.grant.GrantFactory uses dev.brewkits.grant.impl✕
- Connections
- 4 pairs of types, where a type in dev.brewkits.grant.GrantFactory uses a type in dev.brewkits.grant.impl.
- The types involved
dev.brewkits.grant.GrantFactory.androidKt→dev.brewkits.grant.impl.PlatformGrantDelegatedev.brewkits.grant.GrantFactory.iosKt→dev.brewkits.grant.impl.PlatformGrantDelegatedev.brewkits.grant.GrantFactory.jvmKt→dev.brewkits.grant.impl.PlatformGrantDelegatedev.brewkits.grant.GrantFactory.webKt→dev.brewkits.grant.impl.PlatformGrantDelegate
- Direction
- dev.brewkits.grant.GrantFactory uses dev.brewkits.grant.impl, so a change to dev.brewkits.grant.impl can break dev.brewkits.grant.GrantFactory, while a change to dev.brewkits.grant.GrantFactory can't break dev.brewkits.grant.impl.
- Position
- Below the diagonal: dev.brewkits.grant.GrantFactory uses a module listed above it, which is the healthy direction.
26→21 dev.brewkits.grant.GrantFactory uses dev.brewkits.grant✕
- Connections
- 4 pairs of types, where a type in dev.brewkits.grant.GrantFactory uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.GrantFactory.androidKt→dev.brewkits.grant.GrantStoredev.brewkits.grant.GrantFactory.iosKt→dev.brewkits.grant.GrantStoredev.brewkits.grant.GrantFactory.jvmKt→dev.brewkits.grant.GrantStoredev.brewkits.grant.GrantFactory.webKt→dev.brewkits.grant.GrantStore
- Direction
- dev.brewkits.grant.GrantFactory uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.GrantFactory, while a change to dev.brewkits.grant.GrantFactory can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.GrantFactory uses a module listed above it, which is the healthy direction.
27→2 dev.brewkits.grant.GrantHandler.FlowState uses dev.brewkits.grant.GrantHandler✕
- Connections
- 3 pairs of types, where a type in dev.brewkits.grant.GrantHandler.FlowState uses a type in dev.brewkits.grant.GrantHandler.
- The types involved
dev.brewkits.grant.GrantHandler.FlowState.Check→dev.brewkits.grant.GrantHandler.FlowStatedev.brewkits.grant.GrantHandler.FlowState.Done→dev.brewkits.grant.GrantHandler.FlowStatedev.brewkits.grant.GrantHandler.FlowState.HandleResult→dev.brewkits.grant.GrantHandler.FlowState
- Direction
- dev.brewkits.grant.GrantHandler.FlowState uses dev.brewkits.grant.GrantHandler, so a change to dev.brewkits.grant.GrantHandler can break dev.brewkits.grant.GrantHandler.FlowState, while a change to dev.brewkits.grant.GrantHandler.FlowState can't break dev.brewkits.grant.GrantHandler.
- Position
- Below the diagonal: dev.brewkits.grant.GrantHandler.FlowState uses a module listed above it, which is the healthy direction.
27→21 dev.brewkits.grant.GrantHandler.FlowState uses dev.brewkits.grant✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.GrantHandler.FlowState uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.GrantHandler.FlowState.HandleResult→dev.brewkits.grant.GrantStatus
- Direction
- dev.brewkits.grant.GrantHandler.FlowState uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.GrantHandler.FlowState, while a change to dev.brewkits.grant.GrantHandler.FlowState can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.GrantHandler.FlowState uses a module listed above it, which is the healthy direction.
28→21 dev.brewkits.grant.GrantStatus uses dev.brewkits.grant✕
- Connections
- 6 pairs of types, where a type in dev.brewkits.grant.GrantStatus uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.GrantStatus.BUSY→dev.brewkits.grant.GrantStatusdev.brewkits.grant.GrantStatus.DENIED→dev.brewkits.grant.GrantStatusdev.brewkits.grant.GrantStatus.DENIED_ALWAYS→dev.brewkits.grant.GrantStatusdev.brewkits.grant.GrantStatus.GRANTED→dev.brewkits.grant.GrantStatusdev.brewkits.grant.GrantStatus.NOT_DETERMINED→dev.brewkits.grant.GrantStatusdev.brewkits.grant.GrantStatus.PARTIAL_GRANTED→dev.brewkits.grant.GrantStatus
- Direction
- dev.brewkits.grant.GrantStatus uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.GrantStatus, while a change to dev.brewkits.grant.GrantStatus can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.GrantStatus uses a module listed above it, which is the healthy direction.
29→21 dev.brewkits.grant.LocationReadyStatus uses dev.brewkits.grant✕
- Connections
- 7 pairs of types, where a type in dev.brewkits.grant.LocationReadyStatus uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.LocationReadyStatus.BothRequired→dev.brewkits.grant.GrantStatusdev.brewkits.grant.LocationReadyStatus.BothRequired→dev.brewkits.grant.LocationReadyStatusdev.brewkits.grant.LocationReadyStatus.GrantDenied→dev.brewkits.grant.GrantStatusdev.brewkits.grant.LocationReadyStatus.GrantDenied→dev.brewkits.grant.LocationReadyStatusdev.brewkits.grant.LocationReadyStatus.Ready→dev.brewkits.grant.LocationReadyStatusdev.brewkits.grant.LocationReadyStatus.ServiceDisabled→dev.brewkits.grant.LocationReadyStatusdev.brewkits.grant.LocationReadyStatus.Unknown→dev.brewkits.grant.LocationReadyStatus
- Direction
- dev.brewkits.grant.LocationReadyStatus uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.LocationReadyStatus, while a change to dev.brewkits.grant.LocationReadyStatus can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.LocationReadyStatus uses a module listed above it, which is the healthy direction.
30→21 dev.brewkits.grant.ServiceStatus uses dev.brewkits.grant✕
- Connections
- 4 pairs of types, where a type in dev.brewkits.grant.ServiceStatus uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.ServiceStatus.DISABLED→dev.brewkits.grant.ServiceStatusdev.brewkits.grant.ServiceStatus.ENABLED→dev.brewkits.grant.ServiceStatusdev.brewkits.grant.ServiceStatus.NOT_AVAILABLE→dev.brewkits.grant.ServiceStatusdev.brewkits.grant.ServiceStatus.UNKNOWN→dev.brewkits.grant.ServiceStatus
- Direction
- dev.brewkits.grant.ServiceStatus uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.ServiceStatus, while a change to dev.brewkits.grant.ServiceStatus can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.ServiceStatus uses a module listed above it, which is the healthy direction.
31→21 dev.brewkits.grant.ServiceType uses dev.brewkits.grant✕
- Connections
- 6 pairs of types, where a type in dev.brewkits.grant.ServiceType uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.ServiceType.BLUETOOTH→dev.brewkits.grant.ServiceTypedev.brewkits.grant.ServiceType.CAMERA_HARDWARE→dev.brewkits.grant.ServiceTypedev.brewkits.grant.ServiceType.HEALTH→dev.brewkits.grant.ServiceTypedev.brewkits.grant.ServiceType.LOCATION_GPS→dev.brewkits.grant.ServiceTypedev.brewkits.grant.ServiceType.NFC→dev.brewkits.grant.ServiceTypedev.brewkits.grant.ServiceType.WIFI→dev.brewkits.grant.ServiceType
- Direction
- dev.brewkits.grant.ServiceType uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.ServiceType, while a change to dev.brewkits.grant.ServiceType can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.ServiceType uses a module listed above it, which is the healthy direction.
32→21 dev.brewkits.grant.compose uses dev.brewkits.grant✕
- Connections
- 8 pairs of types, where a type in dev.brewkits.grant.compose uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.compose.GrantComposeExtensionsKt→dev.brewkits.grant.GrantAndServiceUiStatedev.brewkits.grant.compose.GrantComposeExtensionsKt→dev.brewkits.grant.GrantGroupUiStatedev.brewkits.grant.compose.GrantComposeExtensionsKt→dev.brewkits.grant.GrantPermissiondev.brewkits.grant.compose.GrantComposeExtensionsKt→dev.brewkits.grant.GrantStatusdev.brewkits.grant.compose.GrantComposeExtensionsKt→dev.brewkits.grant.GrantUiStatedev.brewkits.grant.compose.GrantDialogsKt→dev.brewkits.grant.GrantAndServiceHandlerdev.brewkits.grant.compose.GrantDialogsKt→dev.brewkits.grant.GrantGroupHandlerdev.brewkits.grant.compose.GrantDialogsKt→dev.brewkits.grant.GrantHandler
- Direction
- dev.brewkits.grant.compose uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.compose, while a change to dev.brewkits.grant.compose can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.compose uses a module listed above it, which is the healthy direction.
33→18 dev.brewkits.grant.desktop uses dev.brewkits.grant.handlers✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.desktop uses a type in dev.brewkits.grant.handlers.
- The types involved
dev.brewkits.grant.desktop.AVMediaPermissionHandler→dev.brewkits.grant.handlers.DesktopPermissionHandler
- Direction
- dev.brewkits.grant.desktop uses dev.brewkits.grant.handlers, so a change to dev.brewkits.grant.handlers can break dev.brewkits.grant.desktop, while a change to dev.brewkits.grant.desktop can't break dev.brewkits.grant.handlers.
- Position
- Below the diagonal: dev.brewkits.grant.desktop uses a module listed above it, which is the healthy direction.
33→21 dev.brewkits.grant.desktop uses dev.brewkits.grant✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.desktop uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.desktop.AVMediaPermissionHandler→dev.brewkits.grant.GrantStatus
- Direction
- dev.brewkits.grant.desktop uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.desktop, while a change to dev.brewkits.grant.desktop can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.desktop uses a module listed above it, which is the healthy direction.
34→21 dev.brewkits.grant.testing uses dev.brewkits.grant✕
- Connections
- 14 pairs of types, where a type in dev.brewkits.grant.testing uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.testing.FakeGrantManager→dev.brewkits.grant.GrantLauncherdev.brewkits.grant.testing.FakeGrantManager→dev.brewkits.grant.GrantManagerdev.brewkits.grant.testing.FakeGrantManager→dev.brewkits.grant.GrantPermissiondev.brewkits.grant.testing.FakeGrantManager→dev.brewkits.grant.GrantStatusdev.brewkits.grant.testing.FakeGrantStore→dev.brewkits.grant.AppGrantdev.brewkits.grant.testing.FakeGrantStore→dev.brewkits.grant.GrantStatusdev.brewkits.grant.testing.FakeGrantStore→dev.brewkits.grant.GrantStoredev.brewkits.grant.testing.FakeServiceManager→dev.brewkits.grant.ServiceManagerdev.brewkits.grant.testing.FakeServiceManager→dev.brewkits.grant.ServiceStatusdev.brewkits.grant.testing.FakeServiceManager→dev.brewkits.grant.ServiceTypedev.brewkits.grant.testing.MultiGrantFakeManager→dev.brewkits.grant.GrantLauncherdev.brewkits.grant.testing.MultiGrantFakeManager→dev.brewkits.grant.GrantManagerdev.brewkits.grant.testing.MultiGrantFakeManager→dev.brewkits.grant.GrantPermissiondev.brewkits.grant.testing.MultiGrantFakeManager→dev.brewkits.grant.GrantStatus
- Direction
- dev.brewkits.grant.testing uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.testing, while a change to dev.brewkits.grant.testing can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.testing uses a module listed above it, which is the healthy direction.
35→21 dev.brewkits.grant.util uses dev.brewkits.grant✕
- Connections
- 1 pair of types, where a type in dev.brewkits.grant.util uses a type in dev.brewkits.grant.
- The types involved
dev.brewkits.grant.util.ManifestValidator→dev.brewkits.grant.AppGrant
- Direction
- dev.brewkits.grant.util uses dev.brewkits.grant, so a change to dev.brewkits.grant can break dev.brewkits.grant.util, while a change to dev.brewkits.grant.util can't break dev.brewkits.grant.
- Position
- Below the diagonal: dev.brewkits.grant.util uses a module listed above it, which is the healthy direction.
36→23 com.yourapp.location.LocationFlowResult uses com.yourapp.location✕
- Connections
- 4 pairs of types, where a type in com.yourapp.location.LocationFlowResult uses a type in com.yourapp.location.
- The types involved
com.yourapp.location.LocationFlowResult.Error→com.yourapp.location.LocationFlowResultcom.yourapp.location.LocationFlowResult.GpsDisabled→com.yourapp.location.LocationFlowResultcom.yourapp.location.LocationFlowResult.PermissionDenied→com.yourapp.location.LocationFlowResultcom.yourapp.location.LocationFlowResult.Ready→com.yourapp.location.LocationFlowResult
- Direction
- com.yourapp.location.LocationFlowResult uses com.yourapp.location, so a change to com.yourapp.location can break com.yourapp.location.LocationFlowResult, while a change to com.yourapp.location.LocationFlowResult can't break com.yourapp.location.
- Position
- Below the diagonal: com.yourapp.location.LocationFlowResult uses a module listed above it, which is the healthy direction.
37→32 dev.brewkits.grant.compose.DialogKind uses dev.brewkits.grant.compose✕
- Connections
- 3 pairs of types, where a type in dev.brewkits.grant.compose.DialogKind uses a type in dev.brewkits.grant.compose.
- The types involved
dev.brewkits.grant.compose.DialogKind.None→dev.brewkits.grant.compose.DialogKinddev.brewkits.grant.compose.DialogKind.Rationale→dev.brewkits.grant.compose.DialogKinddev.brewkits.grant.compose.DialogKind.Settings→dev.brewkits.grant.compose.DialogKind
- Direction
- dev.brewkits.grant.compose.DialogKind uses dev.brewkits.grant.compose, so a change to dev.brewkits.grant.compose can break dev.brewkits.grant.compose.DialogKind, while a change to dev.brewkits.grant.compose.DialogKind can't break dev.brewkits.grant.compose.
- Position
- Below the diagonal: dev.brewkits.grant.compose.DialogKind uses a module listed above it, which is the healthy direction.
38→32 dev.brewkits.grant.compose.ServiceDialogKind uses dev.brewkits.grant.compose✕
- Connections
- 4 pairs of types, where a type in dev.brewkits.grant.compose.ServiceDialogKind uses a type in dev.brewkits.grant.compose.
- The types involved
dev.brewkits.grant.compose.ServiceDialogKind.None→dev.brewkits.grant.compose.ServiceDialogKinddev.brewkits.grant.compose.ServiceDialogKind.PermissionSettings→dev.brewkits.grant.compose.ServiceDialogKinddev.brewkits.grant.compose.ServiceDialogKind.Rationale→dev.brewkits.grant.compose.ServiceDialogKinddev.brewkits.grant.compose.ServiceDialogKind.ServiceSettings→dev.brewkits.grant.compose.ServiceDialogKind
- Direction
- dev.brewkits.grant.compose.ServiceDialogKind uses dev.brewkits.grant.compose, so a change to dev.brewkits.grant.compose can break dev.brewkits.grant.compose.ServiceDialogKind, while a change to dev.brewkits.grant.compose.ServiceDialogKind can't break dev.brewkits.grant.compose.
- Position
- Below the diagonal: dev.brewkits.grant.compose.ServiceDialogKind uses a module listed above it, which is the healthy direction.
39→33 dev.brewkits.grant.desktop.AVMediaPermissionHandler uses dev.brewkits.grant.desktop✕
- Connections
- 2 pairs of types, where a type in dev.brewkits.grant.desktop.AVMediaPermissionHandler uses a type in dev.brewkits.grant.desktop.
- The types involved
dev.brewkits.grant.desktop.AVMediaPermissionHandler.Companion→dev.brewkits.grant.desktop.AVMediaPermissionHandlerdev.brewkits.grant.desktop.AVMediaPermissionHandler.Companion→dev.brewkits.grant.desktop.GrantDesktopBridgeLibrary
- Direction
- dev.brewkits.grant.desktop.AVMediaPermissionHandler uses dev.brewkits.grant.desktop, so a change to dev.brewkits.grant.desktop can break dev.brewkits.grant.desktop.AVMediaPermissionHandler, while a change to dev.brewkits.grant.desktop.AVMediaPermissionHandler can't break dev.brewkits.grant.desktop.
- Position
- Below the diagonal: dev.brewkits.grant.desktop.AVMediaPermissionHandler uses a module listed above it, which is the healthy direction.
40→35 dev.brewkits.grant.util.ValidationResult uses dev.brewkits.grant.util✕
- Connections
- 2 pairs of types, where a type in dev.brewkits.grant.util.ValidationResult uses a type in dev.brewkits.grant.util.
- The types involved
dev.brewkits.grant.util.ValidationResult.MissingPermissions→dev.brewkits.grant.util.ValidationResultdev.brewkits.grant.util.ValidationResult.Valid→dev.brewkits.grant.util.ValidationResult
- Direction
- dev.brewkits.grant.util.ValidationResult uses dev.brewkits.grant.util, so a change to dev.brewkits.grant.util can break dev.brewkits.grant.util.ValidationResult, while a change to dev.brewkits.grant.util.ValidationResult can't break dev.brewkits.grant.util.
- Position
- Below the diagonal: dev.brewkits.grant.util.ValidationResult uses a module listed above it, which is the healthy direction.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A05:2025 — Injection | 49 | High / Critical |
| A03:2025 — Software Supply Chain Failures | 19 | High / Critical |
Roadmap
First, reconcile all documentation to match the actual codebase, ensuring every referenced file, workflow, and environment variable exists and is accurate. Second, implement a diagnostic logging trail accessible via a debug flag, focusing on capturing errors that are currently silent to improve reproducibility. Third, organize architecture decision records under a dedicated, numbered directory structure for easy discovery. Finally, address the single off-boarding risk to reduce bus factor and document a tested disaster recovery procedure with clear RTO and RPO targets.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Reconcile the README with reality: grant-core/README.md links to `../docs/advanced/testing.md`, but `docs/advanced/testing.md` does not exist; .github/workflows/README.md documents the environment variable `MAVEN_USERNAME`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `MAVEN_PASSWORD`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `SIGNING_KEY`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `CODECOV_TOKEN`, but no code, script or configuration file names it. | +6.6 pts | Medium | Documentation accuracy |
| Resolve the 1 Off-boarding risk finding(s) in Bus Factor. | +2.8 pts | Low | Bus Factor |
| Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce. | +5.3 pts | Medium | Observability |
| Move ADRs under docs/adr/ (or docs/adrs/) and name them NNNN-title.md so they're easy to find. | +3.3 pts | Medium | Architecture documentation |
| Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery). | +2.5 pts | Medium | DR & Backup |
| Make sure a person approves each release. The release job names an environment, but its approval rules live in the code host's settings, where Watchdog can't see them. Check that a reviewer must approve each release, or publish releases as drafts first, so a bad build can be stopped before anyone downloads it. | +1.9 pts | Medium | Deployment & Rollback |
| Improve ADR Quality — currently 8.0/10. | +1.7 pts | Medium | ADR Quality |
| Keep implementation types off the public surface (Kotlin: `internal`) so internals can change without breaking consumers. | +1.5 pts | Medium | Library API & versioning |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.3 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 1.3 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 1.4 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.3 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.5 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 2.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.6 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt | 7.0 | Mixed | Cyclomatic Complexity: PlatformGrantDelegate.toAndroidGrants (cyclomatic 46) |
| grant-core/src/iosMain/kotlin/dev/brewkits/grant/delegates/LocationManagerDelegate.kt | 7.1 | Mixed | Code Duplication: Duplicated block (12 lines × 2) |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
| grant-core/src/commonMain/kotlin/dev/brewkits/grant/GrantHandler.kt | 7.4 | Mixed | Cyclomatic Complexity: GrantHandler.handleStatus (cyclomatic 29) |
| grant-compose/src/commonMain/kotlin/dev/brewkits/grant/compose/GrantDialogs.kt | 7.8 | Mixed | Code Duplication: Duplicated block (42 lines × 2) |
| grant-core/src/commonMain/kotlin/dev/brewkits/grant/impl/SimpleGrantManager.kt | 8.5 | Near-clean | Code Duplication: Duplicated block (7 lines × 2) |
| demo/src/commonMain/kotlin/dev/brewkits/grant/demo/DemoApp.kt | 8.5 | Near-clean | Code Duplication: Duplicated block (16–17 lines × 2) |
| demo/src/commonMain/kotlin/dev/brewkits/grant/demo/GrantDemoScreen.kt | 8.5 | Near-clean | Code Duplication: Duplicated block (14 lines × 2) |
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
Watchdog 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. 56 of 62 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 6 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 62 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, 119 of 136 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, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — 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 |
| Watchdog 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 |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D8 Code Coverage — not measured this run — Watchdog 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 READ here — but this repository measures it: a coverage step in CI (`koverVerify`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.kt), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored. To have the real number read, produce a coverage report in a standard format (JaCoCo XML — the Gradle `jacocoTestReport` task) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (JaCoCo XML — the Gradle `jacocoTestReport` task) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
- D11 Test Reliability — not measured this run — Watchdog 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: no test result was produced. 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 — Watchdog 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 — 16 Maven/Gradle manifest(s) were read, stating a version for 27 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
- D27 Navigability — not measured this run — Watchdog 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. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- D32 Data Compliance (PII/GDPR) — not measured this run — Watchdog 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. `demo/iosApp/GrantDemo/GrantDemo/ContentView.swift`, `grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt`, `grant-core/src/iosMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.ios.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.
- AX1 Captive dependencies — not measured this run — Watchdog 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 Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository's container is Koin, whose lifetimes are not modelled 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.
- AX6 Interface segregation — not measured this run — Watchdog 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.
- AXB1 Runtime evidence locked — no reproducible boot — not measured this run — Watchdog 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. Subject: a native UI project (grant-core/src/androidInstrumentedTest/AndroidManifest.xml). The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. Watchdog then boots it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
- C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- GD1 Unfinished & placeholder code — not measured this run — Watchdog 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 this repository's Kotlin is most of its product and 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 — Watchdog 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 this repository's Kotlin is most of its product and 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.
- S1 Web-Security Posture — not measured this run — Watchdog 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.
- X2 Cancellation propagation — not measured this run — Watchdog 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, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, 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
Watchdog assesses the repository exactly as committed, and only the repository. By design it does 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.
- D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- 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 is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- 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").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- 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".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
- 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.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
4 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was PlatformGrantDelegate.toAndroidGrants at 46. 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 PlatformGrantDelegate.handlerFor at 25 — 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: grant-core/src/iosMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.ios.kt (PlatformGrantDelegate.handlerFor at 25). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
What to do
- Bring the 1 body over 30 down to 30 or less in Cyclomatic Complexity — start with PlatformGrantDelegate.toAndroidGrants (cyclomatic 46). — Refactoring it lifts Cyclomatic Complexity from 8.5 to about 9.0/10.
D2 · Cognitive Complexity
5 method(s) exceeded the cognitive complexity threshold of 15; the worst was GrantHandler.handleStatus at 94.
What to do
- Bring the 1 body over 60 down to 60 or less in Cognitive Complexity — start with GrantHandler.handleStatus (cognitive 94). — Refactoring it lifts Cognitive Complexity from 7.7 to about 8.1/10.
D3 · God Classes
1 over-large unit(s) detected — types, modules or files that carry too much.
What to do
- Resolve the 1 MethodTooLong finding(s) in God Classes — start with GrantHandler.kt. — One of this dimension's main actionable groups (1 warning-level).
- Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
12 duplicated block group(s) detected. 3 of the 12 are in trees this repository does not ship — vendored, example/demo, 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 2 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with PlatformGrantDelegate.android.kt, LocationManagerDelegate.kt. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with LocationManagerDelegate.kt (2). — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 Duplicated block (42 lines × 2) finding(s) in Code Duplication — start with GrantDialogs.kt. — One of this dimension's main actionable groups (1 warning-level).
D5 · Coupling
14 production modules (Gradle), 1 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; 2 module(s) off the main sequence, with abstractness counted on 13 of the 14 (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 2 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 Circular dependency finding(s) in Coupling. — One of this dimension's main actionable groups (1 issue-level).
D6 · Cohesion (LCOM4)
0 of 28 classes have LCOM4 above 3.
D7 · Architectural Integrity
All 1 mechanizable ADR(s) are enforced: 1 by analyzers, 0 by tests. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).
D13 · Secret Scanning
Secret scan ran and found no leaked secrets.
D15 · Churn × Complexity Hotspots
Top hotspots: grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt (10×46=460); grant-core/src/iosMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.ios.kt (7×25=175)
What to do
- Resolve the 2 Hotspot finding(s) in Churn × Complexity Hotspots — start with PlatformGrantDelegate.android.kt, PlatformGrantDelegate.ios.kt. — One of this dimension's main actionable groups (2 warning-level).
D16 · Bus Factor
37 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt. Counted over 56 of the 133 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
D17 · Explicit Debt
0 deducted task-comment markers across 12176 LoC (0.0/KLoC) → score 10.0. 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.
D19 · Documentation Quality
The repository's root README and the docs/README.md provide a clear overview of Grant (type-safe permission management for Android/iOS/Browser) with an excellent rationale, code example, and roadmap. The architecture/Docs markdown files are comprehensive: a multi-platform README covering installation, usage, contributing, licensing, and architecture; a grant-compose README showing why traditional approaches fail and the one-line dialog model; and a BEST_PRACTICES.md that is itself a well-structured reference of best practices for permission request patterns, Android/iOS-specific guidance, location permissions, service status checking, testing, and a checklist. The READMEs are all complete but clipped mid-outline in the middle of each document (e.g., '## Scenarios' then '## Grant Types'), so any missing sections from an outline must be flagged only if they appear unquoted. Comprehensive documentation for the Grant permission library: a README covering dependency management (Kotlin Coroutines/AndroidX Activity Compose, Koin optional support), a Fix 'Dead Click' on Android scenario with a detailed solution (SharedPreferences vs Koin status tracking), an iOS testing strategy with Apple-platform constraints and test files structure, a manual-injection guide, a migration guide to 2.6.0 version covering new features like AppGrant.USE_FULL_SCREEN_INTENT, and a Testing Improvements Summary achieving 95%+ coverage. Architecture documentation (GrantStore pluggable abstraction) is also present. This repository is well documented with a strong README for each directory: the root README gives an overview and links to the architecture/Docs set, while each directory's README states what it does and provides installation, setup, usage, and contribution guidance. The Quick Start Guide (grant-core/QUICK_START.md) is exemplary — it starts with a TL;DR build/run command, explains what is working in its What's Working section, gives install code for gradle/kotlin, dependency injection for Android, and the Info.plist/register step for iOS, plus an outline of remaining sections to follow. The architecture/Docs set (46 markdown files) is comprehensive but not shown here. (8 of 25 sampled documents could not be assessed: 1 of 4 evaluation groups failed.)
D20 · ADR Quality
Evaluated 1 ADR(s) individually; mean quality 8.0/10 (consistently complete and clear). 0 flagged with a specific gap.
What to do
- Improve ADR Quality — currently 8.0/10. — Evaluated 1 ADR(s) individually; mean quality 8.0/10 (consistently complete and clear). 0 flagged with a specific gap.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D22 · Internal API Consistency
3 API inconsistencies across 182 exposed types.
What to do
- Resolve the 1 Duplicate method names with identical signatures in FakeGrantManager. It… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Redundant factory entry points. `GrantFactoryKt` exposes a generic… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Extension functions in `GrantStoreKt` operate on `GrantPermission`,… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-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)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
49 finding(s): 0 critical, 46 high, 3 medium, 0 low. 43 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 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 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 43 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 (43 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
10 finding(s): 0 critical, 6 high, 2 medium, 2 low.
What to do
- Resolve the 5 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (5). — One of this dimension's main actionable groups (5 issue-level).
- Resolve the 1 High vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 2 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
D34 · Knowledge Freshness
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 56 of the 133 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
D35 · Change Coupling
No strong hidden change-coupling between production files.
D36 · Supply-chain Provenance & Signing
0/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 3 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (3 warning-level).
- 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 — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 13 platform declaration(s) and 27 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
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
- The projects :grant-core → :grant-testing → :grant-core form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference.
What to do
- Break project reference cycles by extracting shared abstractions into a separate project; keep the graph a DAG.
AX4 · Dependency direction
M1 · Documentation (README)
What to do
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 11 of 14 project(s) that lack one — worth up to 1.6 pts.
M2 · Architecture documentation
- 1 ADR-shaped document(s) detected by content — `docs/grant-core/ARCHITECTURE.md`. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live — so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here.
What to do
- Move ADRs under docs/adr/ (or docs/adrs/) and name them NNNN-title.md so they're easy to find.
M3 · Folder & project structure
M4 · Documentation accuracy
- grant-core/README.md links to `../docs/advanced/testing.md`, but `docs/advanced/testing.md` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — grant-core/README.md:336
- .github/workflows/README.md documents the environment variable `MAVEN_USERNAME`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .github/workflows/README.md:122
- .github/workflows/README.md documents the environment variable `MAVEN_PASSWORD`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .github/workflows/README.md:123
- .github/workflows/README.md documents the environment variable `SIGNING_KEY`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .github/workflows/README.md:124
- .github/workflows/README.md documents the environment variable `CODECOV_TOKEN`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .github/workflows/README.md:225
- .github/workflows/README.md names `gradle/actions/setup-gradle`, but no file or folder `gradle/actions/setup-gradle` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — .github/workflows/README.md:253
- docs/demo/DEMO_SETUP.md names `AppGrant.kt`, but no file or folder `AppGrant.kt` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/demo/DEMO_SETUP.md:23
- docs/demo/DEMO_SETUP.md names `impl/PlatformGrantDelegate.kt`, but no file or folder `impl/PlatformGrantDelegate.kt` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/demo/DEMO_SETUP.md:26
- docs/demo/DEMO_SETUP.md names `iosApp/Info.plist`, but no file or folder `iosApp/Info.plist` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/demo/DEMO_SETUP.md:77
- docs/grant-core/GRANTS.md documents the environment variable `FOREGROUND_SERVICE`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/grant-core/GRANTS.md:927
- docs/grant-core/GRANTS.md documents the environment variable `FOREGROUND_SERVICE_LOCATION`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/grant-core/GRANTS.md:928
- docs/grant-core/GRANTS.md documents the environment variable `WAKE_LOCK`, but no code, script or configuration file names it. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/grant-core/GRANTS.md:932
- docs/grant-core/QUICK_START_iOS.md runs `./setup-ios-app.sh`, but `setup-ios-app.sh` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/grant-core/QUICK_START_iOS.md:30
- docs/grant-core/QUICK_START_iOS.md names `iosApp/Info.plist`, but no file or folder `iosApp/Info.plist` exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/grant-core/QUICK_START_iOS.md:109
- docs/ios/IOS_SETUP_ANDROID_STUDIO.md runs `./list-ios-simulators.sh`, but `list-ios-simulators.sh` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/ios/IOS_SETUP_ANDROID_STUDIO.md:116
- docs/ios/IOS_SETUP_ANDROID_STUDIO.md runs `./ios-quick-run.sh`, but `ios-quick-run.sh` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/ios/IOS_SETUP_ANDROID_STUDIO.md:193
- docs/ios/QUICK_START_IOS_ANDROID_STUDIO.md runs `./ios-quick-run.sh "iPhone 16 Pro Max"`, but `ios-quick-run.sh` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/ios/QUICK_START_IOS_ANDROID_STUDIO.md:77
What to do
- Reconcile the README with reality: grant-core/README.md links to `../docs/advanced/testing.md`, but `docs/advanced/testing.md` does not exist; .github/workflows/README.md documents the environment variable `MAVEN_USERNAME`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `MAVEN_PASSWORD`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `SIGNING_KEY`, but no code, script or configuration file names it; .github/workflows/README.md documents the environment variable `CODECOV_TOKEN`, but no code, script or configuration file names it.
P1 · CI/CD gates
P10 · Library API & versioning
- 179/230 types (78%) declared in the published library are public. For a library, every public type is a stability contract — keep implementation types off the surface and expose only the intended API.
What to do
- Keep implementation types off the public surface (Kotlin: `internal`) so internals can change without breaking consumers.
P2 · Observability
- No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.
What to do
- Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
P3 · Security & performance tooling
- `REDACTED` run(s) a static-analysis scan, but no workflow that runs one is triggered by a pull request (or a merge queue, or an unfiltered push) — the scan fires on a schedule or a manual dispatch only. A vulnerable change therefore merges clean and is reported on the next scheduled run, by which time it is on the default branch and the only remedy is a follow-up fix. Add the pull-request trigger to the workflow that runs the scan so the finding arrives before the merge rather than after it.
What to do
- Trigger your SAST workflow on pull requests — a scan that only runs on a cron reports history, it does not gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
What to do
- Make sure a person approves each release. The release job names an environment, but its approval rules live in the code host's settings, where Watchdog can't see them. Check that a reviewer must approve each release, or publish releases as drafts first, so a bad build can be stopped before anyone downloads it.
P5 · DR & Backup
What to do
- Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
P6 · Release Hygiene
PF3 · Async & latency hygiene
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X20 · Mistyped argument guard
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X26 · Unsynchronised callback handoff
X27 · Collection changed while being enumerated
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
- `catch (e: Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×13) — grant-core/src/androidMain/kotlin/dev/brewkits/grant/SharedPreferencesGrantStore.kt:146, grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:47, grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:64, …
What to do
- Swallowed exception (caught, then discarded)
X30 · Support guard that admits what it rejects
X5 · Nullable reference types
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 79% | Strong | Solid. |
| Architecture | 95% | Exemplary | Solid. |
| Maturity | 47% | Weak — gated by M4 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 44% | Weak — gated by P2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 73% | Adequate — gated by D36 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not included — 57 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.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — 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
- 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. No Swift request handler (a Vapor, Hummingbird, Kitura, Swifter or Perfect route handler, as a method or a registered closure) is declared, so no state is shared between request threads.
- 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
- AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no data at rest for these controls to protect.
- C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C3 Audit Trail — No personal data detected in a persisted data model — no PII-named column (email, first_name, date_of_birth, phone_number, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
- C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
- C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
- D10 Test Quality — ~17025 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 — 16 Maven/Gradle manifest(s) were read, stating a version for 27 dependency(ies) and leaving 0 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
- D14 License Compliance — Not scored — this repository's 27 declared JVM dependency coordinate(s) were read from its 16 Maven/Gradle manifest(s), but Maven Central could not be asked for the licence of 27 of them (HTTP 429 Too Many Requests from https://repo1.maven.org/maven2/androidx/fragment/fragment/1.8.9/fragment-1.8.9.pom), and a licence verdict over part of a dependency graph is not a licence verdict. Nothing is asserted about this repository's licensing in either direction.
- 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.
- 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+ projects each declaring an entity of their own. 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 — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — none of 1 ADRs are conformance-checkable — unverifiable.
- D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.kt), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- 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) — 3 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- 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.
- D8 Code Coverage — Coverage not included — suite not readable by the collector
- D9 Test Distribution — Test source is 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 its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
- DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 23 value object(s); 4 domain event(s); its domain events are published by services or handlers — no domain entity raises one
- ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and this analysis resolves a call's owner only where the receiver's type is written down in the source. Reported as guidance rather than measured
- ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM, JavaScript/TypeScript 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 — no coverage report found on disk — produce a coverage report in a standard format (JaCoCo XML — the Gradle `jacocoTestReport` task) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- 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 applicable: allocation awareness is rated where code engineers for it — at least 400 production lines that ship benchmarks or already use allocation-aware idioms (8 or more). This repository's Kotlin code has 10,351 production line(s), 0 such use(s) and no benchmarks, so there is no allocation work to rate. The card is reward-only: its absence costs nothing.
- 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.
- X2 Cancellation propagation — 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
- 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 — 54 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Project dependency cycle
- REDACTED
- REDACTED
- Circular dependency
Serious — 55 finding(s)
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/SharedPreferencesGrantStore.kt:146
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:47
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:64
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:84
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:101
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:116
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:135
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.android.kt:153
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:595
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/util/ManifestValidator.kt:36
- Swallowed exception (caught, then discarded) grant-core/src/androidMain/kotlin/dev/brewkits/grant/util/ManifestValidator.kt:84
- Swallowed exception (caught, then discarded) grant-core/src/commonMain/kotlin/dev/brewkits/grant/impl/MyServiceManager.kt:37
- Swallowed exception (caught, then discarded) grant-core/src/iosMain/kotlin/dev/brewkits/grant/impl/PlatformServiceDelegate.ios.kt:75
- REDACTED
- REDACTED
- REDACTED
- Hotspot: grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:803
- Hotspot: grant-core/src/iosMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.ios.kt grant-core/src/iosMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.ios.kt:276
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (6 lines × 2) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:343
- Duplicated block (6 lines × 2) grant-core/src/iosMain/kotlin/dev/brewkits/grant/delegates/LocationManagerDelegate.kt:31
- Duplicated block (8 lines × 2) grant-core/src/iosMain/kotlin/dev/brewkits/grant/delegates/LocationManagerDelegate.kt:112
- Duplicated block (8 lines × 2) grant-core/src/iosMain/kotlin/dev/brewkits/grant/delegates/LocationManagerDelegate.kt:134
- Off the main sequence: :grant-testing
- Off the main sequence: :grant-core
- PlatformGrantDelegate.toAndroidGrants (cyclomatic 46) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:803
- GrantHandler.handleStatus (cyclomatic 29) grant-core/src/commonMain/kotlin/dev/brewkits/grant/GrantHandler.kt:631
- PlatformGrantDelegate.requestInternal (cyclomatic 26) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:350
- PlatformGrantDelegate.getGrantStatusOverride (cyclomatic 16) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:745
- GrantHandler.handleStatus (cognitive 94) grant-core/src/commonMain/kotlin/dev/brewkits/grant/GrantHandler.kt:631
- PlatformGrantDelegate.toAndroidGrants (cognitive 57) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:803
- PlatformGrantDelegate.requestInternal (cognitive 44) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:350
- PlatformGrantDelegate.getGrantStatusOverride (cognitive 31) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:745
- PlatformGrantDelegate.requestMultipleInternal (cognitive 18) grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt:473
- Duplicate method names with identical signatures in FakeGrantManager. It is unclear if these methods have different internal behaviors or if one is a legacy alias.
- Redundant factory entry points. `GrantFactoryKt` exposes a generic `createPlatformDelegate` that likely delegates to platform-specific implementations, while platform-specific `Kt` files (androidKt, iosKt, etc.) also expose the same method. This creates confusion about which entry point to use.
- Extension functions in `GrantStoreKt` operate on `GrantPermission`, whereas the core `GrantStore` interface and its implementations (e.g., `SharedPreferencesGrantStore`) operate on `AppGrant`. This creates a parallel API surface for the same underlying data, risking inconsistency if the store is updated via one path but queried via the other.
- REDACTED
- MethodTooLong: GrantHandler.handleStatus grant-core/src/commonMain/kotlin/dev/brewkits/grant/GrantHandler.kt:631
- REDACTED
- REDACTED
- REDACTED
- Duplicated block (42 lines × 2) grant-compose/src/commonMain/kotlin/dev/brewkits/grant/compose/GrantDialogs.kt:262
- Duplicated block (29 lines × 2) grant-compose/src/commonMain/kotlin/dev/brewkits/grant/compose/GrantDialogs.kt:108
- Duplicated block (12 lines × 2) grant-core/src/iosMain/kotlin/dev/brewkits/grant/delegates/LocationManagerDelegate.kt:148
- Duplicated block (7 lines × 2) grant-core/src/commonMain/kotlin/dev/brewkits/grant/impl/SimpleGrantManager.kt:141
- Duplicated block (9 lines × 2) grant-core/src/iosMain/kotlin/dev/brewkits/grant/delegates/LocationManagerDelegate.kt:92
- Duplicated block (16–17 lines × 2) demo/src/commonMain/kotlin/dev/brewkits/grant/demo/DemoApp.kt:35
- Duplicated block (14 lines × 2) demo/src/commonMain/kotlin/dev/brewkits/grant/demo/GrantDemoScreen.kt:162
- Duplicated block (13 lines × 2) demo/src/commonMain/kotlin/dev/brewkits/grant/demo/LocationFlowDemoScreen.kt:127
- No structured logging
- SAST runs, but gates no merge
Minor — 27 finding(s)
- README/code drift grant-core/README.md:336
- README/code drift .github/workflows/README.md:122
- README/code drift .github/workflows/README.md:123
- README/code drift .github/workflows/README.md:124
- README/code drift .github/workflows/README.md:225
- README/code drift .github/workflows/README.md:253
- README/code drift docs/demo/DEMO_SETUP.md:23
- README/code drift docs/demo/DEMO_SETUP.md:26
- README/code drift docs/demo/DEMO_SETUP.md:77
- README/code drift docs/grant-core/GRANTS.md:927
- README/code drift docs/grant-core/GRANTS.md:928
- README/code drift docs/grant-core/GRANTS.md:932
- README/code drift docs/grant-core/QUICK_START_iOS.md:30
- README/code drift docs/grant-core/QUICK_START_iOS.md:109
- README/code drift docs/ios/IOS_SETUP_ANDROID_STUDIO.md:116
- README/code drift docs/ios/IOS_SETUP_ANDROID_STUDIO.md:193
- README/code drift docs/ios/QUICK_START_IOS_ANDROID_STUDIO.md:77
- REDACTED
- REDACTED
- Off-boarding risk: anonymized user #1
- Projects may be oversized for their cohesion
- REDACTED
- REDACTED
- REDACTED
- ADRs not easily discoverable
- Large public API surface
- Duplicated predicate grant-bluetooth/src/iosMain/kotlin/dev/brewkits/grant/delegates/BluetoothManagerDelegate.kt:53
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-562ab0ec86894da78f1293bc0106508d/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-562ab0ec86894da78f1293bc0106508d/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 49 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 10 | artifacts/raw/trivy-fs.json |
| 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 3 file(s) — `demo/iosApp/GrantDemo/GrantDemo/ContentView.swift`, `grant-core/src/androidMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.android.kt`, `grant-core/src/iosMain/kotlin/dev/brewkits/grant/impl/PlatformGrantDelegate.ios.kt` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real. | 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 | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |