awslabs / aws-crt-kotlin
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 67 units with 359 lines of code in units (18.8% 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)
    • 2 simple units (86 lines of code)
    • 65 very simple units (273 lines of code)
0% | 0% | 0% | 23% | 76%
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% | 23% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
elasticurl/src/commonMain/kotlin0% | 0% | 0% | 66% | 33%
src/common/src/aws/sdk/kotlin/crt/auth0% | 0% | 0% | 22% | 77%
src/common/src/aws/sdk/kotlin/crt/http0% | 0% | 0% | 0% | 100%
src/jvm/src/aws/sdk/kotlin/crt/http0% | 0% | 0% | 0% | 100%
src/common/src/aws/sdk/kotlin/crt0% | 0% | 0% | 0% | 100%
src/jvm/src/aws/sdk/kotlin/crt/io0% | 0% | 0% | 0% | 100%
src/jvm/src/aws/sdk/kotlin/crt/auth0% | 0% | 0% | 0% | 100%
src/common/src/aws/sdk/kotlin/crt/util0% | 0% | 0% | 0% | 100%
src/common/src/aws/sdk/kotlin/crt/io0% | 0% | 0% | 0% | 100%
elasticurl/src/jvmMain/kotlin0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
fun main()
in elasticurl/src/commonMain/kotlin/Application.kt
78 9 1
override fun equals()
in src/common/src/aws/sdk/kotlin/crt/auth/signing/AwsSigningResult.kt
8 6 1
override fun equals()
in src/common/src/aws/sdk/kotlin/crt/util/CaseInsensitiveMap.kt
4 4 1
public fun build()
in src/common/src/aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider.kt
6 3 0
override fun putAll()
in src/common/src/aws/sdk/kotlin/crt/util/CaseInsensitiveMap.kt
5 2 1
public fun removeKeysWithNoEntries()
in src/common/src/aws/sdk/kotlin/crt/http/Headers.kt
5 2 0
override fun onResponseBody()
in src/jvm/src/aws/sdk/kotlin/crt/http/HttpRequestUtil.kt
6 2 2
override fun sendRequestBody()
in src/jvm/src/aws/sdk/kotlin/crt/http/HttpRequestUtil.kt
4 2 1
override fun onResponseComplete()
in elasticurl/src/commonMain/kotlin/Application.kt
10 2 2
public fun close()
in src/common/src/aws/sdk/kotlin/crt/Closeable.kt
3 1 0
override fun setValue()
in src/common/src/aws/sdk/kotlin/crt/util/CaseInsensitiveMap.kt
4 1 1
public fun lastError()
in src/common/src/aws/sdk/kotlin/crt/CRT.kt
6 1 0
public fun errorString()
in src/common/src/aws/sdk/kotlin/crt/CRT.kt
5 1 1
public fun errorName()
in src/common/src/aws/sdk/kotlin/crt/CRT.kt
4 1 1
public fun nativeMemory()
in src/common/src/aws/sdk/kotlin/crt/CRT.kt
3 1 0
public fun build()
in src/common/src/aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider.kt
4 1 0
public fun build()
in src/common/src/aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider.kt
8 1 0
public fun build()
in src/common/src/aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider.kt
4 1 0
override fun hashCode()
in src/common/src/aws/sdk/kotlin/crt/auth/signing/AwsSigningResult.kt
5 1 0
public fun readAll()
in src/common/src/aws/sdk/kotlin/crt/io/Buffer.kt
3 1 0