android / health-samples
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 100 units with 1,223 lines of code in units (37.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 0 simple units (0 lines of code)
    • 100 very simple units (1,223 lines of code)
0% | 0% | 0% | 0% | 100%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
kt0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
health-services/ExerciseSample/app/src/main/java/com/example/exercise0% | 0% | 0% | 0% | 100%
health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/ui0% | 0% | 0% | 0% | 100%
health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/components0% | 0% | 0% | 0% | 100%
health-services/PassiveGoals/app/src/main/java/com/example/passivegoals0% | 0% | 0% | 0% | 100%
health-services/PassiveData/app/src/main/java/com/example/passivedata0% | 0% | 0% | 0% | 100%
health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/data0% | 0% | 0% | 0% | 100%
health-services/MeasureData/app/src/main/java/com/example/measuredata0% | 0% | 0% | 0% | 100%
health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/navigation0% | 0% | 0% | 0% | 100%
health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation0% | 0% | 0% | 0% | 100%
health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/theme0% | 0% | 0% | 0% | 100%
health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
override fun onReceive()
in health-services/PassiveGoals/app/src/main/java/com/example/passivegoals/PassiveGoalsReceiver.kt
16 4 2
override fun onCreate()
in health-services/PassiveGoals/app/src/main/java/com/example/passivegoals/MainActivity.kt
53 4 1
override fun onReceive()
in health-services/PassiveGoals/app/src/main/java/com/example/passivegoals/StartupReceiver.kt
14 4 2
override fun onReceive()
in health-services/PassiveData/app/src/main/java/com/example/passivedata/StartupReceiver.kt
13 4 2
suspend fun getExerciseCapabilities()
in health-services/ExerciseSample/app/src/main/java/com/example/exercise/HealthServicesManager.kt
11 3 0
suspend fun startExercise()
in health-services/ExerciseSample/app/src/main/java/com/example/exercise/HealthServicesManager.kt
44 3 0
override fun onStartCommand()
in health-services/ExerciseSample/app/src/main/java/com/example/exercise/ExerciseService.kt
27 3 3
fun ListSessionsScreen()
in health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/ui/ListSessionsScreen/ListSessionsScreen.kt
51 3 2
fun TotalStepsScreen()
in health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/ui/TotalStepsScreen/TotalStepsScreen.kt
22 3 3
fun SessionDetailScreen()
in health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/ui/SessionDetailScreen/SessionDetailScreen.kt
61 3 4
override fun onAvailabilityChanged()
in health-services/MeasureData/app/src/main/java/com/example/measuredata/HealthServicesManager.kt
5 2 2
override fun onViewCreated()
in health-services/ExerciseSample/app/src/main/java/com/example/exercise/StartupFragment.kt
13 2 2
suspend fun prepareExercise()
in health-services/ExerciseSample/app/src/main/java/com/example/exercise/HealthServicesManager.kt
17 2 0
suspend fun markLap()
in health-services/ExerciseSample/app/src/main/java/com/example/exercise/HealthServicesManager.kt
5 2 0
override fun onAvailabilityChanged()
in health-services/ExerciseSample/app/src/main/java/com/example/exercise/HealthServicesManager.kt
7 2 2
override fun onUnbind()
in health-services/ExerciseSample/app/src/main/java/com/example/exercise/ExerciseService.kt
10 2 1
override fun onReceive()
in health-services/PassiveData/app/src/main/java/com/example/passivedata/PassiveDataReceiver.kt
22 2 2
override fun onCreate()
in health-services/PassiveData/app/src/main/java/com/example/passivedata/MainActivity.kt
40 2 1
override fun create()
in health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/ui/ListSessionsScreen/ListSessionsViewModel.kt
9 2 1
override fun create()
in health-platform-v1/HealthPlatformSample/app/src/main/java/com/example/healthplatformsample/presentation/ui/TotalStepsScreen/TotalStepsViewModel.kt
9 2 1