awslabs / aws-crt-kotlin
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 67 units with 359 lines of code in units (18.8% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (78 lines of code)
    • 0 medium size units (0 lines of code)
    • 0 small units (0 lines of code)
    • 66 very small units (281 lines of code)
0% | 21% | 0% | 0% | 78%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
kt0% | 21% | 0% | 0% | 78%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
elasticurl/src/commonMain/kotlin0% | 66% | 0% | 0% | 33%
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/crt/auth0% | 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%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
fun main()
in elasticurl/src/commonMain/kotlin/Application.kt
78 9 1
override fun onResponseHeaders()
in src/jvm/src/aws/sdk/kotlin/crt/http/HttpRequestUtil.kt
10 1 4
override fun onResponseHeaders()
in elasticurl/src/commonMain/kotlin/Application.kt
10 1 4
override fun onResponseComplete()
in elasticurl/src/commonMain/kotlin/Application.kt
10 2 2
public fun build()
in src/common/src/aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider.kt
8 1 0
override fun equals()
in src/common/src/aws/sdk/kotlin/crt/auth/signing/AwsSigningResult.kt
8 6 1
public fun onResponseHeaders()
in src/common/src/aws/sdk/kotlin/crt/http/HttpStreamResponseHandler.kt
8 1 4
public fun appendAll()
in src/common/src/aws/sdk/kotlin/crt/http/Headers.kt
7 1 2
public fun lastError()
in src/common/src/aws/sdk/kotlin/crt/CRT.kt
6 1 0
public fun build()
in src/common/src/aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider.kt
6 3 0
public fun getAll()
in src/common/src/aws/sdk/kotlin/crt/http/Headers.kt
6 1 1
override fun onResponseBody()
in src/jvm/src/aws/sdk/kotlin/crt/http/HttpRequestUtil.kt
6 2 2
override fun onResponseBody()
in elasticurl/src/commonMain/kotlin/Application.kt
6 1 2
override fun putAll()
in src/common/src/aws/sdk/kotlin/crt/util/CaseInsensitiveMap.kt
5 2 1
public fun errorString()
in src/common/src/aws/sdk/kotlin/crt/CRT.kt
5 1 1
override fun hashCode()
in src/common/src/aws/sdk/kotlin/crt/auth/signing/AwsSigningResult.kt
5 1 0
public fun names()
in src/common/src/aws/sdk/kotlin/crt/http/Headers.kt
5 1 0
public fun appendAll()
in src/common/src/aws/sdk/kotlin/crt/http/Headers.kt
5 1 1
public fun appendMissing()
in src/common/src/aws/sdk/kotlin/crt/http/Headers.kt
5 1 1
public fun removeKeysWithNoEntries()
in src/common/src/aws/sdk/kotlin/crt/http/Headers.kt
5 2 0